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; }
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); }