mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-08-26 18:41:17 +00:00
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:
parent
6723c50b5c
commit
e0e95c53fc
@ -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>
|
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
|
* qemud/conf.c, qemud/internal.c: Read upto 8k from QEMU
|
||||||
|
@ -840,10 +840,6 @@ virFreeDomain(virConnectPtr conn, virDomainPtr domain) {
|
|||||||
}
|
}
|
||||||
domain->magic = -1;
|
domain->magic = -1;
|
||||||
domain->id = -1;
|
domain->id = -1;
|
||||||
if (domain->path != NULL)
|
|
||||||
free(domain->path);
|
|
||||||
if (domain->xml)
|
|
||||||
free(domain->xml);
|
|
||||||
if (domain->name)
|
if (domain->name)
|
||||||
free(domain->name);
|
free(domain->name);
|
||||||
free(domain);
|
free(domain);
|
||||||
|
@ -138,17 +138,6 @@ struct _virConnect {
|
|||||||
int flags; /* a set of connection flags */
|
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:
|
* _virDomain:
|
||||||
*
|
*
|
||||||
@ -159,11 +148,8 @@ struct _virDomain {
|
|||||||
int uses; /* reference count */
|
int uses; /* reference count */
|
||||||
virConnectPtr conn; /* pointer back to the connection */
|
virConnectPtr conn; /* pointer back to the connection */
|
||||||
char *name; /* the domain external name */
|
char *name; /* the domain external name */
|
||||||
char *path; /* the domain internal path */
|
|
||||||
int id; /* the domain ID */
|
int id; /* the domain ID */
|
||||||
int flags; /* extra flags */
|
|
||||||
unsigned char uuid[VIR_UUID_BUFLEN]; /* the domain unique identifier */
|
unsigned char uuid[VIR_UUID_BUFLEN]; /* the domain unique identifier */
|
||||||
char *xml; /* the XML description for defined domains */
|
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -651,7 +651,6 @@ xenStoreDomainLookupByName(virConnectPtr conn, const char *name)
|
|||||||
goto done;
|
goto done;
|
||||||
}
|
}
|
||||||
ret->id = id;
|
ret->id = id;
|
||||||
ret->path = path;
|
|
||||||
|
|
||||||
done:
|
done:
|
||||||
if (xenddomain != NULL)
|
if (xenddomain != NULL)
|
||||||
|
Loading…
Reference in New Issue
Block a user