static int
virNetcfDriverStateOnceInit(void)
{
    if (!(virNetcfDriverStateClass = virClassNew(virClassForObjectLockable(),
                                       "virNetcfDriverState",
                                       sizeof(virNetcfDriverState),
                                       virNetcfDriverStateDispose)))
        return -1;
    return 0;
}
Beispiel #2
0
static int qemuAgentOnceInit(void)
{
    if (!(qemuAgentClass = virClassNew(virClassForObjectLockable(),
                                       "qemuAgent",
                                       sizeof(qemuAgent),
                                       qemuAgentDispose)))
        return -1;

    return 0;
}
Beispiel #3
0
static int virKeepAliveOnceInit(void)
{
    if (!(virKeepAliveClass = virClassNew(virClassForObjectLockable(),
                                          "virKeepAlive",
                                          sizeof(virKeepAlive),
                                          virKeepAliveDispose)))
        return -1;

    return 0;
}
Beispiel #4
0
static int virDomainCapsOnceInit(void)
{
    if (!VIR_CLASS_NEW(virDomainCaps, virClassForObjectLockable()))
        return -1;

    if (!VIR_CLASS_NEW(virDomainCapsCPUModels, virClassForObject()))
        return -1;

    return 0;
}
Beispiel #5
0
static int virPortAllocatorOnceInit(void)
{
    if (!(virPortAllocatorClass = virClassNew(virClassForObjectLockable(),
                                              "virPortAllocator",
                                              sizeof(virPortAllocator),
                                              virPortAllocatorDispose)))
        return -1;

    return 0;
}
Beispiel #6
0
static int virUSBOnceInit(void)
{
    if (!(virUSBDeviceListClass = virClassNew(virClassForObjectLockable(),
                                              "virUSBDeviceList",
                                              sizeof(virUSBDeviceList),
                                              virUSBDeviceListDispose)))
        return -1;

    return 0;
}
static int virNetServerClientOnceInit(void)
{
    if (!(virNetServerClientClass = virClassNew(virClassForObjectLockable(),
                                                "virNetServerClient",
                                                sizeof(virNetServerClient),
                                                virNetServerClientDispose)))
        return -1;

    return 0;
}
Beispiel #8
0
static int virHashAtomicOnceInit(void)
{
    virHashAtomicClass = virClassNew(virClassForObjectLockable(),
                                     "virHashAtomic",
                                     sizeof(virHashAtomic),
                                     virHashAtomicDispose);
    if (!virHashAtomicClass)
        return -1;
    else
        return 0;
}
Beispiel #9
0
static int
virSecurityManagerOnceInit(void)
{
    if (!(virSecurityManagerClass = virClassNew(virClassForObjectLockable(),
                                                "virSecurityManagerClass",
                                                sizeof(virSecurityManager),
                                                virSecurityManagerDispose)))
        return -1;

    return 0;
}
Beispiel #10
0
static int
virObjectEventOnceInit(void)
{
    if (!VIR_CLASS_NEW(virObjectEventState, virClassForObjectLockable()))
        return -1;

    if (!VIR_CLASS_NEW(virObjectEvent, virClassForObject()))
        return -1;

    return 0;
}
Beispiel #11
0
static int
virNetDaemonOnceInit(void)
{
    if (!(virNetDaemonClass = virClassNew(virClassForObjectLockable(),
                                          "virNetDaemon",
                                          sizeof(virNetDaemon),
                                          virNetDaemonDispose)))
        return -1;

    return 0;
}
Beispiel #12
0
static int
libxlDomainObjPrivateOnceInit(void)
{
    if (!(libxlDomainObjPrivateClass = virClassNew(virClassForObjectLockable(),
                                                   "libxlDomainObjPrivate",
                                                   sizeof(libxlDomainObjPrivate),
                                                   libxlDomainObjPrivateDispose)))
        return -1;

    return 0;
}
Beispiel #13
0
static int
virPortAllocatorOnceInit(void)
{
    if (!VIR_CLASS_NEW(virPortAllocator, virClassForObjectLockable()))
        return -1;

    if (!(virPortAllocatorInstance = virPortAllocatorNew()))
        return -1;

    return 0;
}
Beispiel #14
0
static int
virLogHandlerOnceInit(void)
{
    if (!(virLogHandlerClass = virClassNew(virClassForObjectLockable(),
                                          "virLogHandler",
                                          sizeof(virLogHandler),
                                          virLogHandlerDispose)))
        return -1;

    return 0;
}
Beispiel #15
0
static int virCloseCallbacksOnceInit(void)
{
    virCloseCallbacksClass = virClassNew(virClassForObjectLockable(),
                                         "virCloseCallbacks",
                                         sizeof(virCloseCallbacks),
                                         virCloseCallbacksDispose);

    if (!virCloseCallbacksClass)
        return -1;
    else
        return 0;
}
Beispiel #16
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;
}
Beispiel #17
0
static int
virStoragePoolObjOnceInit(void)
{
    if (!(virStoragePoolObjClass = virClassNew(virClassForObjectLockable(),
                                               "virStoragePoolObj",
                                               sizeof(virStoragePoolObj),
                                               virStoragePoolObjDispose)))
        return -1;

    if (!(virStoragePoolObjListClass = virClassNew(virClassForObjectRWLockable(),
                                                   "virStoragePoolObjList",
                                                   sizeof(virStoragePoolObjList),
                                                   virStoragePoolObjListDispose)))
        return -1;

    return 0;
}
Beispiel #18
0
static int
virObjectEventOnceInit(void)
{
    if (!(virObjectEventStateClass =
          virClassNew(virClassForObjectLockable(),
                      "virObjectEventState",
                      sizeof(virObjectEventState),
                      virObjectEventStateDispose)))
        return -1;

    if (!(virObjectEventClass =
          virClassNew(virClassForObject(),
                      "virObjectEvent",
                      sizeof(virObjectEvent),
                      virObjectEventDispose)))
        return -1;

    return 0;
}