[libvirt] Best practices for adding an API