VixError
VixSnapshot_GetChild(VixHandle parentSnapshotHandle,
int index,
VixHandle *childSnapshotHandle)
This function returns the specified child snapshot.
VixHandle parentSnapshot;
VixHandle childSnapshot;
int numChildren;
VixError err;
int i;
err = VixSnapshot_GetNumChildren(parentSnapshotHandle, &numChildren);
printf("the snapshot has %d child snapshots\n", numChildren);
for (i = 0; i < numChildren; i++) {
err = VixSnapshot_GetChild(parentSnapshotHandle, i, &childSnapshot);
}