[libvirt] [PATCH 12/2] event: make network events easier to use without casts