mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/spice-protocol
synced 2025-12-26 14:18:31 +00:00
Add the StreamMsgGraphicsDeviceInfo message
The message contains information about the graphics device and monitor belonging to a particular video stream (which maps to a channel) from the streaming agent. Signed-off-by: Lukáš Hrázký <lhrazky@redhat.com> Acked-by: Frediano Ziglio <fziglio@redhat.com>
This commit is contained in:
parent
839cd8c1dd
commit
5ab9f2f7a5
@ -90,6 +90,8 @@ typedef enum StreamMsgType {
|
||||
STREAM_TYPE_CURSOR_SET,
|
||||
/* guest cursor position */
|
||||
STREAM_TYPE_CURSOR_MOVE,
|
||||
/* the graphics device display information message (device address and display id) */
|
||||
STREAM_TYPE_DEVICE_DISPLAY_INFO,
|
||||
} StreamMsgType;
|
||||
|
||||
typedef enum StreamCapabilities {
|
||||
@ -140,6 +142,35 @@ typedef struct StreamMsgData {
|
||||
uint8_t data[0];
|
||||
} StreamMsgData;
|
||||
|
||||
/* This message contains information about the graphics device and monitor
|
||||
* belonging to a particular video stream (which maps to a channel) from
|
||||
* the streaming agent.
|
||||
*
|
||||
* The device_address is the hardware address of the device (e.g. PCI),
|
||||
* device_display_id is the id of the monitor on the device.
|
||||
*
|
||||
* The supported device address format is:
|
||||
* "pci/<DOMAIN>/<SLOT>.<FUNCTION>/.../<SLOT>.<FUNCTION>"
|
||||
*
|
||||
* The "pci" identifies the rest of the string as a PCI address. It is the only
|
||||
* supported address at the moment, other identifiers can be introduced later.
|
||||
* <DOMAIN> is the PCI domain, followed by <SLOT>.<FUNCTION> of any PCI bridges
|
||||
* in the chain leading to the device. The last <SLOT>.<FUNCTION> is the
|
||||
* graphics device. All of <DOMAIN>, <SLOT>, <FUNCTION> are hexadecimal numbers
|
||||
* with the following number of digits:
|
||||
* <DOMAIN>: 4
|
||||
* <SLOT>: 2
|
||||
* <FUNCTION>: 1
|
||||
*
|
||||
* Sent from the streaming agent to the server.
|
||||
*/
|
||||
typedef struct StreamMsgDeviceDisplayInfo {
|
||||
uint32_t stream_id;
|
||||
uint32_t device_display_id;
|
||||
uint32_t device_address_len;
|
||||
uint8_t device_address[0]; // a zero-terminated string
|
||||
} StreamMsgDeviceDisplayInfo;
|
||||
|
||||
/* Tell to stop current stream and possibly start a new one.
|
||||
* This message is sent by the host to the guest.
|
||||
* Allows to communicate the codecs supported by the clients.
|
||||
|
||||
Loading…
Reference in New Issue
Block a user