[libvirt] [PATCH] remote generator: Handle struct returning functions better