static int virNetServerProgramOnceInit(void) { if (!VIR_CLASS_NEW(virNetServerProgram, virClassForObject())) return -1; return 0; }
static int qemuBlockJobDataOnceInit(void) { if (!VIR_CLASS_NEW(qemuBlockJobData, virClassForObject())) return -1; return 0; }
static int libxlConfigOnceInit(void) { if (!(libxlDriverConfigClass = virClassNew(virClassForObject(), "libxlDriverConfig", sizeof(libxlDriverConfig), libxlDriverConfigDispose))) return -1; return 0; }
static int virNetServerProgramOnceInit(void) { if (!(virNetServerProgramClass = virClassNew(virClassForObject(), "virNetServerProgram", sizeof(virNetServerProgram), virNetServerProgramDispose))) return -1; return 0; }
static int virLXCConfigOnceInit(void) { if (!(virLXCDriverConfigClass = virClassNew(virClassForObject(), "virLXCDriverConfig", sizeof(virLXCDriverConfig), virLXCDriverConfigDispose))) return -1; return 0; }
static int virCapabilitiesOnceInit(void) { if (!(virCapsClass = virClassNew(virClassForObject(), "virCaps", sizeof(virCaps), virCapabilitiesDispose))) return -1; return 0; }
static int virDomainCapsOnceInit(void) { if (!VIR_CLASS_NEW(virDomainCaps, virClassForObjectLockable())) return -1; if (!VIR_CLASS_NEW(virDomainCapsCPUModels, virClassForObject())) return -1; return 0; }
static int virObjectEventOnceInit(void) { if (!(virObjectEventClass = virClassNew(virClassForObject(), "virObjectEvent", sizeof(virObjectEvent), virObjectEventDispose))) return -1; return 0; }
static int dnsmasqCapsOnceInit(void) { if (!(dnsmasqCapsClass = virClassNew(virClassForObject(), "dnsmasqCaps", sizeof(dnsmasqCaps), dnsmasqCapsDispose))) { return -1; } return 0; }
static int libxlMigrationDstArgsOnceInit(void) { if (!(libxlMigrationDstArgsClass = virClassNew(virClassForObject(), "libxlMigrationDstArgs", sizeof(libxlMigrationDstArgs), libxlMigrationDstArgsDispose))) return -1; return 0; }
static int virObjectEventOnceInit(void) { if (!VIR_CLASS_NEW(virObjectEventState, virClassForObjectLockable())) return -1; if (!VIR_CLASS_NEW(virObjectEvent, virClassForObject())) return -1; return 0; }
static int virQEMUConfigOnceInit(void) { virQEMUDriverConfigClass = virClassNew(virClassForObject(), "virQEMUDriverConfig", sizeof(virQEMUDriverConfig), virQEMUDriverConfigDispose); if (!virQEMUDriverConfigClass) return -1; else return 0; }
static int virIdentityOnceInit(void) { if (!VIR_CLASS_NEW(virIdentity, virClassForObject())) return -1; if (virThreadLocalInit(&virIdentityCurrent, (virThreadLocalCleanup)virObjectUnref) < 0) { virReportError(VIR_ERR_INTERNAL_ERROR, "%s", _("Cannot initialize thread local for current identity")); return -1; } return 0; }
static int virDomainCapsOnceInit(void) { if (!(virDomainCapsClass = virClassNew(virClassForObjectLockable(), "virDomainCapsClass", sizeof(virDomainCaps), virDomainCapsDispose))) return -1; virDomainCapsCPUModelsClass = virClassNew(virClassForObject(), "virDomainCapsCPUModelsClass", sizeof(virDomainCapsCPUModels), virDomainCapsCPUModelsDispose); if (!virDomainCapsCPUModelsClass) return -1; return 0; }
static int virIdentityOnceInit(void) { if (!(virIdentityClass = virClassNew(virClassForObject(), "virIdentity", sizeof(virIdentity), virIdentityDispose))) return -1; if (virThreadLocalInit(&virIdentityCurrent, (virThreadLocalCleanup)virObjectUnref) < 0) { virReportError(VIR_ERR_INTERNAL_ERROR, "%s", _("Cannot initialize thread local for current identity")); return -1; } return 0; }