public int virDomainSnapshotListAllChildren(out Domain_Shapshot[] snaps, virDomainSnapshotListFlags flags)
 {
     virDomainSnapshotPtr[] items = new virDomainSnapshotPtr[0];
     var ret = API.virDomainSnapshotListAllChildren(_virDomainSnapshotPtr, out items, flags);
     snaps = new Domain_Shapshot[items.Length];
     for (var i = 0; i < items.Length; i++)
         snaps[i] = new Domain_Shapshot(items[i]);
     return ret;
 }
示例#2
0
        public int virDomainListAllSnapshots(out Domain_Shapshot[] snaps, virDomainSnapshotListFlags flags)
        {
            virDomainSnapshotPtr[] items = new virDomainSnapshotPtr[0];
            var ret = API.virDomainListAllSnapshots(_DomainPtr, out items, flags);

            snaps = new Domain_Shapshot[items.Length];
            for (var i = 0; i < items.Length; i++)
            {
                snaps[i] = new Domain_Shapshot(items[i]);
            }
            return(ret);
        }