I have pushed this. I changed the name of the API to
'node_nr_children' (in a follow-up commit).
Note to use the API safely from C you will need to set and check
errno:
errno = 0;
size_t nr = hivex_node_nr_children (h, node);
if (nr == 0 && errno != 0) {
perror ("hivex_node_nr_children");
exit (1);
}
Thanks,
Rich.
--
Richard Jones, Virtualization Group, Red Hat
http://people.redhat.com/~rjones
Read my programming and virtualization blog:
http://rwmj.wordpress.com
virt-builder quickly builds VMs from scratch
http://libguestfs.org/virt-builder.1.html