Tue May 8 11:14:00 BST 2007 Richard W.M. Jones <rjones@redhat.com>

* src/hash.c, src/internal.h, src/xs_internal.c: Remove
	  unused fields from internal _virDomain structure.
This commit is contained in:
Richard W.M. Jones 2007-05-08 10:22:36 +00:00
parent 6723c50b5c
commit e0e95c53fc
4 changed files with 5 additions and 19 deletions

View File

@ -1,3 +1,8 @@
Tue May 8 11:14:00 BST 2007 Richard W.M. Jones <rjones@redhat.com>
* 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 <berrange@redhat.com>
* qemud/conf.c, qemud/internal.c: Read upto 8k from QEMU

View File

@ -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);

View File

@ -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 */
};
/**

View File

@ -651,7 +651,6 @@ xenStoreDomainLookupByName(virConnectPtr conn, const char *name)
goto done;
}
ret->id = id;
ret->path = path;
done:
if (xenddomain != NULL)