Пример #1
0
 public static Libvirt.virDomainPtr GetPtr(Domain p)
 {
     return p._DomainPtr;
 }
Пример #2
0
 public Libvirt_Pinvoke.CS_Objects.Container.LibvirtContainer<Domain> virConnectListAllDomains(virConnectListAllDomainsFlags flags)
 {
     Domain[] domains;
     Libvirt.virDomainPtr[] ds;
     var ret = API.virConnectListAllDomains(_ConnectPtr, out ds, flags);
     if (ret > -1)
     {
         domains = new Domain[ds.Length];
         for (var i = 0; i < ds.Length; i++)
         {
             domains[i] = new Domain(ds[i]);
         }
     }
     else domains = new Domain[0];
     return new Libvirt_Pinvoke.CS_Objects.Container.LibvirtContainer<Domain>(domains);
 }