* Internal structure associated to a connection
*/
struct _virConnect {
- virObjectLockable object;
+ virObjectLockable parent;
/* All the variables from here, until declared otherwise in one of
* the following comments, are setup at time of connection open
* Internal structure associated to an admin connection
*/
struct _virAdmConnect {
- virObjectLockable object;
+ virObjectLockable parent;
virURIPtr uri;
void *privateData;
* Internal structure associated to a daemon server
*/
struct _virAdmServer {
- virObject object;
+ virObject parent;
virAdmConnectPtr conn; /* pointer back to the admin connection */
char *name; /* the server external name */
};
* Internal structure associated to a client connected to daemon
*/
struct _virAdmClient {
- virObject object;
+ virObject parent;
virAdmServerPtr srv; /* pointer to the server client is
* connected to, which also holds a
* reference back to the admin connection
* Internal structure associated to a domain
*/
struct _virDomain {
- virObject object;
+ virObject parent;
virConnectPtr conn; /* pointer back to the connection */
char *name; /* the domain external name */
int id; /* the domain ID */
* Internal structure associated to a domain
*/
struct _virNetwork {
- virObject object;
+ virObject parent;
virConnectPtr conn; /* pointer back to the connection */
char *name; /* the network external name */
unsigned char uuid[VIR_UUID_BUFLEN]; /* the network unique identifier */
* Internal structure associated to a physical host interface
*/
struct _virInterface {
- virObject object;
+ virObject parent;
virConnectPtr conn; /* pointer back to the connection */
char *name; /* the network external name */
char *mac; /* the interface MAC address */
* Internal structure associated to a storage pool
*/
struct _virStoragePool {
- virObject object;
+ virObject parent;
virConnectPtr conn; /* pointer back to the connection */
char *name; /* the storage pool external name */
unsigned char uuid[VIR_UUID_BUFLEN]; /* the storage pool unique identifier */
* Internal structure associated to a storage volume
*/
struct _virStorageVol {
- virObject object;
+ virObject parent;
virConnectPtr conn; /* pointer back to the connection */
char *pool; /* Pool name of owner */
char *name; /* the storage vol external name */
* Internal structure associated with a node device
*/
struct _virNodeDevice {
- virObject object;
+ virObject parent;
virConnectPtr conn; /* pointer back to the connection */
char *name; /* device name (unique on node) */
char *parentName; /* parent device name */
* Internal structure associated with a secret
*/
struct _virSecret {
- virObject object;
+ virObject parent;
virConnectPtr conn; /* pointer back to the connection */
unsigned char uuid[VIR_UUID_BUFLEN]; /* the secret unique identifier */
int usageType; /* the type of usage */
* Internal structure associated with an input stream
*/
struct _virStream {
- virObject object;
+ virObject parent;
virConnectPtr conn;
unsigned int flags;
* Internal structure associated with a domain snapshot
*/
struct _virDomainSnapshot {
- virObject object;
+ virObject parent;
char *name;
virDomainPtr domain;
};
* Internal structure associated to a network filter
*/
struct _virNWFilter {
- virObject object;
+ virObject parent;
virConnectPtr conn; /* pointer back to the connection */
char *name; /* the network filter external name */
unsigned char uuid[VIR_UUID_BUFLEN]; /* the network filter unique identifier */
virAdmConnectRef(virAdmConnectPtr conn)
{
VIR_DEBUG("conn=%p refs=%d", conn,
- conn ? conn->object.parent.u.s.refs : 0);
+ conn ? conn->parent.parent.u.s.refs : 0);
virResetLastError();
virCheckAdmConnectReturn(conn, -1);
virDomainSnapshotRef(virDomainSnapshotPtr snapshot)
{
VIR_DEBUG("snapshot=%p, refs=%d", snapshot,
- snapshot ? snapshot->object.u.s.refs : 0);
+ snapshot ? snapshot->parent.u.s.refs : 0);
virResetLastError();
int
virDomainRef(virDomainPtr domain)
{
- VIR_DOMAIN_DEBUG(domain, "refs=%d", domain ? domain->object.u.s.refs : 0);
+ VIR_DOMAIN_DEBUG(domain, "refs=%d", domain ? domain->parent.u.s.refs : 0);
virResetLastError();
int
virConnectRef(virConnectPtr conn)
{
- VIR_DEBUG("conn=%p refs=%d", conn, conn ? conn->object.parent.u.s.refs : 0);
+ VIR_DEBUG("conn=%p refs=%d", conn, conn ? conn->parent.parent.u.s.refs : 0);
virResetLastError();
int
virInterfaceRef(virInterfacePtr iface)
{
- VIR_DEBUG("iface=%p refs=%d", iface, iface ? iface->object.u.s.refs : 0);
+ VIR_DEBUG("iface=%p refs=%d", iface, iface ? iface->parent.u.s.refs : 0);
virResetLastError();
virNetworkRef(virNetworkPtr network)
{
VIR_DEBUG("network=%p refs=%d", network,
- network ? network->object.u.s.refs : 0);
+ network ? network->parent.u.s.refs : 0);
virResetLastError();
int
virNodeDeviceRef(virNodeDevicePtr dev)
{
- VIR_DEBUG("dev=%p refs=%d", dev, dev ? dev->object.u.s.refs : 0);
+ VIR_DEBUG("dev=%p refs=%d", dev, dev ? dev->parent.u.s.refs : 0);
virResetLastError();
virNWFilterRef(virNWFilterPtr nwfilter)
{
VIR_DEBUG("nwfilter=%p refs=%d", nwfilter,
- nwfilter ? nwfilter->object.u.s.refs : 0);
+ nwfilter ? nwfilter->parent.u.s.refs : 0);
virResetLastError();
virSecretRef(virSecretPtr secret)
{
VIR_DEBUG("secret=%p refs=%d", secret,
- secret ? secret->object.u.s.refs : 0);
+ secret ? secret->parent.u.s.refs : 0);
virResetLastError();
int
virStoragePoolRef(virStoragePoolPtr pool)
{
- VIR_DEBUG("pool=%p refs=%d", pool, pool ? pool->object.u.s.refs : 0);
+ VIR_DEBUG("pool=%p refs=%d", pool, pool ? pool->parent.u.s.refs : 0);
virResetLastError();
int
virStorageVolRef(virStorageVolPtr vol)
{
- VIR_DEBUG("vol=%p refs=%d", vol, vol ? vol->object.u.s.refs : 0);
+ VIR_DEBUG("vol=%p refs=%d", vol, vol ? vol->parent.u.s.refs : 0);
virResetLastError();
virStreamRef(virStreamPtr stream)
{
VIR_DEBUG("stream=%p refs=%d", stream,
- stream ? stream->object.u.s.refs : 0);
+ stream ? stream->parent.u.s.refs : 0);
virResetLastError();
* And don't forget to update virQEMUCapsNewCopy.
*/
struct _virQEMUCaps {
- virObject object;
+ virObject parent;
bool usedQMP;
VIR_LOG_INIT("rpc.netclientprogram");
struct _virNetClientProgram {
- virObject object;
+ virObject parent;
unsigned program;
unsigned version;
VIR_LOG_INIT("rpc.netserverprogram");
struct _virNetServerProgram {
- virObject object;
+ virObject parent;
unsigned program;
unsigned version;
#define VIR_FROM_THIS VIR_FROM_RPC
struct _virNetServerService {
- virObject object;
+ virObject parent;
size_t nsocks;
virNetSocketPtr *socks;
*
*/
struct _dnsmasqCaps {
- virObject object;
+ virObject parent;
char *binaryPath;
bool noRefresh;
time_t mtime;
struct _virFileCache {
- virObjectLockable object;
+ virObjectLockable parent;
virHashTablePtr table;
struct _testFileCacheObj {
- virObject object;
+ virObject parent;
char *data;
};
typedef struct _testFileCacheObj testFileCacheObj;