[libvirt] [PATCH] Add type safe pointers based on reviewing the RHQ code