diff --git a/ChangeLog b/ChangeLog index 29c4e4f7af..8c0de219ea 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Tue May 8 11:14:00 BST 2007 Richard W.M. Jones + + * src/hash.c, src/internal.h, src/xs_internal.c: Remove + unused fields from internal _virDomain structure. + Thu May 3 12:09:41 EST 2007 Daniel P. Berange * qemud/conf.c, qemud/internal.c: Read upto 8k from QEMU diff --git a/src/hash.c b/src/hash.c index 340636680f..cdaeb49f85 100644 --- a/src/hash.c +++ b/src/hash.c @@ -840,10 +840,6 @@ virFreeDomain(virConnectPtr conn, virDomainPtr domain) { } domain->magic = -1; domain->id = -1; - if (domain->path != NULL) - free(domain->path); - if (domain->xml) - free(domain->xml); if (domain->name) free(domain->name); free(domain); diff --git a/src/internal.h b/src/internal.h index b01dda2b6e..4579f84e60 100644 --- a/src/internal.h +++ b/src/internal.h @@ -138,17 +138,6 @@ struct _virConnect { int flags; /* a set of connection flags */ }; -/** -* virDomainFlags: -* -* a set of special flag values associated to the domain -*/ - -enum virDomainFlags { - DOMAIN_IS_SHUTDOWN = (1 << 0), /* the domain is being shutdown */ - DOMAIN_IS_DEFINED = (1 << 1) /* the domain is defined not running */ -}; - /** * _virDomain: * @@ -159,11 +148,8 @@ struct _virDomain { int uses; /* reference count */ virConnectPtr conn; /* pointer back to the connection */ char *name; /* the domain external name */ - char *path; /* the domain internal path */ int id; /* the domain ID */ - int flags; /* extra flags */ unsigned char uuid[VIR_UUID_BUFLEN]; /* the domain unique identifier */ - char *xml; /* the XML description for defined domains */ }; /** diff --git a/src/xs_internal.c b/src/xs_internal.c index cac9f30abc..9cc40759ca 100644 --- a/src/xs_internal.c +++ b/src/xs_internal.c @@ -651,7 +651,6 @@ xenStoreDomainLookupByName(virConnectPtr conn, const char *name) goto done; } ret->id = id; - ret->path = path; done: if (xenddomain != NULL)