mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-03-07 17:28:15 +00:00
* qemud/protocol.h src/internal.h: applied patch from Jim Meyering
removing global variables (using named enum instead). Daniel
This commit is contained in:
parent
7bdee4adef
commit
5af3ccc8f8
@ -1,3 +1,8 @@
|
||||
Mon Mar 19 15:15:51 CET 2007 Daniel Veillard <veillard@redhat.com>
|
||||
|
||||
* qemud/protocol.h src/internal.h: applied patch from Jim Meyering
|
||||
removing global variables (using named enum instead).
|
||||
|
||||
Mon Mar 19 11:13:58 CET 2007 Daniel Veillard <veillard@redhat.com>
|
||||
|
||||
* src/libvirt.c: patch from Atsushi SAKAI, fixing virsh access
|
||||
|
@ -29,7 +29,7 @@
|
||||
#include <net/if.h> /* for IF_NAMESIZE */
|
||||
|
||||
/* List of different packet types which can be sent */
|
||||
enum {
|
||||
enum qemud_packet_type {
|
||||
QEMUD_PKT_FAILURE = 0,
|
||||
QEMUD_PKT_GET_VERSION,
|
||||
QEMUD_PKT_GET_NODEINFO,
|
||||
@ -71,7 +71,7 @@ enum {
|
||||
QEMUD_PKT_GET_CAPABILITIES,
|
||||
|
||||
QEMUD_PKT_MAX,
|
||||
} qemud_packet_type;
|
||||
};
|
||||
|
||||
|
||||
#define QEMUD_PROTOCOL_VERSION_MAJOR 1
|
||||
@ -86,11 +86,11 @@ enum {
|
||||
#define QEMUD_MAX_ERROR_LEN 1024
|
||||
|
||||
/* Possible guest VM states */
|
||||
enum {
|
||||
enum qemud_domain_runstate {
|
||||
QEMUD_STATE_RUNNING = 1,
|
||||
QEMUD_STATE_PAUSED,
|
||||
QEMUD_STATE_STOPPED,
|
||||
} qemud_domain_runstate;
|
||||
};
|
||||
|
||||
/* Each packets has at least a fixed size header.
|
||||
*
|
||||
|
@ -155,10 +155,10 @@ struct _virConnect {
|
||||
* a set of special flag values associated to the domain
|
||||
*/
|
||||
|
||||
enum {
|
||||
enum virDomainFlags {
|
||||
DOMAIN_IS_SHUTDOWN = (1 << 0), /* the domain is being shutdown */
|
||||
DOMAIN_IS_DEFINED = (1 << 1) /* the domain is defined not running */
|
||||
} virDomainFlags;
|
||||
};
|
||||
|
||||
/**
|
||||
* _virDomain:
|
||||
|
Loading…
x
Reference in New Issue
Block a user