コード例 #1
0
        public int virStoragePoolListAllVolumes(out Storage_Volume[] vols)
        {
            virStorageVolPtr[] ptrs;
            var ret = API.virStoragePoolListAllVolumes(_Storage_PoolPtr, out ptrs);

            vols = new Storage_Volume[ptrs.Length];
            for (var i = 0; i < ptrs.Length; i++)
            {
                vols[i] = new Storage_Volume(ptrs[i]);
            }
            return(ret);
        }
コード例 #2
0
 public static Libvirt.virStorageVolPtr GetPtr(Storage_Volume p)
 {
     return(p._Storage_VolumePtr);
 }
コード例 #3
0
 public static Libvirt.virStorageVolPtr GetPtr(Storage_Volume p)
 {
     return p._Storage_VolumePtr;
 }
コード例 #4
0
 public Storage_Volume virStorageVolCreateXMLFrom(Models.Concrete.Storage_Volume xmlDesc,Storage_Volume clonevol, virStorageVolCreateFlags flags)
 {
     return new Storage_Volume(API.virStorageVolCreateXMLFrom(_Storage_PoolPtr, xmlDesc.To_XML(), Storage_Volume.GetPtr(clonevol), flags));
 }
コード例 #5
0
 public int virStoragePoolListAllVolumes(out Storage_Volume[] vols)
 {
     virStorageVolPtr[] ptrs;
     var ret = API.virStoragePoolListAllVolumes(_Storage_PoolPtr, out ptrs);
     vols = new Storage_Volume[ptrs.Length];
     for (var i = 0; i < ptrs.Length; i++)
     {
         vols[i] = new Storage_Volume(ptrs[i]);
     }
     return ret;
 }
コード例 #6
0
 public Storage_Volume virStorageVolCreateXMLFrom(Models.Concrete.Storage_Volume xmlDesc, Storage_Volume clonevol, virStorageVolCreateFlags flags)
 {
     return(new Storage_Volume(API.virStorageVolCreateXMLFrom(_Storage_PoolPtr, xmlDesc.To_XML(), Storage_Volume.GetPtr(clonevol), flags)));
 }