mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
Add flags for virDomainOpenConsole
This patch adds a set of flags to be used with the virDomainOpenConsole
API call to specify if the user wishes to interrupt an existing console
session or just to try open a new one.
VIR_DOMAIN_CONSOLE_SAFE - specifies that the console connection should
be opened only if the hypervisor supports
mutually exclusive access to console devices
VIR_DOMAIN_CONSOLE_FORCE - specifies that the caller wishes to interrupt
existing session and force a creation of a
new one.
This commit is contained in:
@@ -3749,7 +3749,19 @@ int virNWFilterGetUUIDString (virNWFilterPtr nwfilter,
|
||||
char *buf);
|
||||
char * virNWFilterGetXMLDesc (virNWFilterPtr nwfilter,
|
||||
unsigned int flags);
|
||||
/**
|
||||
* virDomainConsoleFlags
|
||||
*
|
||||
* Since 0.9.10
|
||||
*/
|
||||
typedef enum {
|
||||
|
||||
VIR_DOMAIN_CONSOLE_FORCE = (1 << 0), /* abort a (possibly) active console
|
||||
connection to force a new
|
||||
connection */
|
||||
VIR_DOMAIN_CONSOLE_SAFE = (1 << 1), /* check if the console driver supports
|
||||
safe console operations */
|
||||
} virDomainConsoleFlags;
|
||||
|
||||
int virDomainOpenConsole(virDomainPtr dom,
|
||||
const char *devname,
|
||||
|
||||
Reference in New Issue
Block a user