예제 #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;
}
예제 #2
0
파일: vmware_driver.c 프로젝트: rbu/libvirt
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;
}
예제 #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;
}