mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
api: Add API to tunnel a guest channel via stream
This patch adds a new API, virDomainOpenChannel, that uses streams to connect to a virtio channel on a guest. This creates a secure communication channel between a guest and a libvirt client. This behaves the same as virDomainOpenConsole, except on channels instead of console/serial/parallel devices.
This commit is contained in:
committed by
Eric Blake
parent
54df702ed0
commit
d52add46ed
@@ -4547,6 +4547,22 @@ int virDomainOpenConsole(virDomainPtr dom,
|
||||
virStreamPtr st,
|
||||
unsigned int flags);
|
||||
|
||||
/**
|
||||
* virDomainChannelFlags
|
||||
*
|
||||
* Since 1.0.2
|
||||
*/
|
||||
typedef enum {
|
||||
VIR_DOMAIN_CHANNEL_FORCE = (1 << 0), /* abort a (possibly) active channel
|
||||
connection to force a new
|
||||
connection */
|
||||
} virDomainChannelFlags;
|
||||
|
||||
int virDomainOpenChannel(virDomainPtr dom,
|
||||
const char *name,
|
||||
virStreamPtr st,
|
||||
unsigned int flags);
|
||||
|
||||
typedef enum {
|
||||
VIR_DOMAIN_OPEN_GRAPHICS_SKIPAUTH = (1 << 0),
|
||||
} virDomainOpenGraphicsFlags;
|
||||
|
||||
Reference in New Issue
Block a user