1
0
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:
Daniel Veillard 2007-03-19 14:18:05 +00:00
parent 7bdee4adef
commit 5af3ccc8f8
3 changed files with 11 additions and 6 deletions

View File

@ -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> Mon Mar 19 11:13:58 CET 2007 Daniel Veillard <veillard@redhat.com>
* src/libvirt.c: patch from Atsushi SAKAI, fixing virsh access * src/libvirt.c: patch from Atsushi SAKAI, fixing virsh access

View File

@ -29,7 +29,7 @@
#include <net/if.h> /* for IF_NAMESIZE */ #include <net/if.h> /* for IF_NAMESIZE */
/* List of different packet types which can be sent */ /* List of different packet types which can be sent */
enum { enum qemud_packet_type {
QEMUD_PKT_FAILURE = 0, QEMUD_PKT_FAILURE = 0,
QEMUD_PKT_GET_VERSION, QEMUD_PKT_GET_VERSION,
QEMUD_PKT_GET_NODEINFO, QEMUD_PKT_GET_NODEINFO,
@ -71,7 +71,7 @@ enum {
QEMUD_PKT_GET_CAPABILITIES, QEMUD_PKT_GET_CAPABILITIES,
QEMUD_PKT_MAX, QEMUD_PKT_MAX,
} qemud_packet_type; };
#define QEMUD_PROTOCOL_VERSION_MAJOR 1 #define QEMUD_PROTOCOL_VERSION_MAJOR 1
@ -86,11 +86,11 @@ enum {
#define QEMUD_MAX_ERROR_LEN 1024 #define QEMUD_MAX_ERROR_LEN 1024
/* Possible guest VM states */ /* Possible guest VM states */
enum { enum qemud_domain_runstate {
QEMUD_STATE_RUNNING = 1, QEMUD_STATE_RUNNING = 1,
QEMUD_STATE_PAUSED, QEMUD_STATE_PAUSED,
QEMUD_STATE_STOPPED, QEMUD_STATE_STOPPED,
} qemud_domain_runstate; };
/* Each packets has at least a fixed size header. /* Each packets has at least a fixed size header.
* *

View File

@ -155,10 +155,10 @@ struct _virConnect {
* a set of special flag values associated to the domain * 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_SHUTDOWN = (1 << 0), /* the domain is being shutdown */
DOMAIN_IS_DEFINED = (1 << 1) /* the domain is defined not running */ DOMAIN_IS_DEFINED = (1 << 1) /* the domain is defined not running */
} virDomainFlags; };
/** /**
* _virDomain: * _virDomain: