Beispiel #1
0
static int 
lightosConnectListDefinedDomains(virConnectPtr conn,char **const names,int maxnames){
    
    lightosConnPtr privconn = conn->privateData;
    int n;

    memset(names,0,sizeof(*names)*maxnames);
    n = virDomainObjListGetInactiveNames(privconn->domains,names,maxnames,NULL,NULL);

    return n;
}
Beispiel #2
0
static int
vmwareListDefinedDomains(virConnectPtr conn,
                         char **const names, int nnames)
{
    struct vmware_driver *driver = conn->privateData;
    int n;

    vmwareDriverLock(driver);
    n = virDomainObjListGetInactiveNames(&driver->domains, names, nnames);
    vmwareDriverUnlock(driver);
    return n;
}
Beispiel #3
0
static int
bhyveConnectListDefinedDomains(virConnectPtr conn, char **const names,
                               int maxnames)
{
    bhyveConnPtr privconn = conn->privateData;
    int n;

    if (virConnectListDefinedDomainsEnsureACL(conn) < 0)
        return -1;

    memset(names, 0, sizeof(*names) * maxnames);
    n = virDomainObjListGetInactiveNames(privconn->domains, names,
                                         maxnames, virConnectListDefinedDomainsCheckACL, conn);

    return n;
}