[Libguestfs] Code snippet to work out which RStruct/RStructList structs are used and how