[libvirt] [python PATCH] event: Add bindings for agent lifecycle event

Eric Blake eblake at redhat.com
Tue Nov 25 15:54:22 UTC 2014


On 11/24/2014 08:42 AM, Peter Krempa wrote:
> Also add the example.
> ---
>  examples/event-test.py | 13 +++++++++++
>  libvirt-override.c     | 60 ++++++++++++++++++++++++++++++++++++++++++++++++++
>  2 files changed, 73 insertions(+)
>  mode change 100644 => 100755 examples/event-test.py
> 
> +++ b/libvirt-override.c
> @@ -6566,6 +6566,61 @@ libvirt_virConnectDomainEventTunableCallback(virConnectPtr conn ATTRIBUTE_UNUSED
>  }
>  #endif /* LIBVIR_CHECK_VERSION(1, 2, 9) */
> 
> +#if LIBVIR_CHECK_VERSION(1, 2, 11)

Not a problem with this patch, but at some point, we ought to revisit
these #if checks to instead gate them on whether libvirt.h provided a
given callback id (since it is possible to backport events to earlier
libvirt builds without breaking .so compatibility in downstream distros,
and those distors right now have to tweak these defines to match up with
their backports instead of having it happen automatically).  It's on my
todo list of something to experiment with when I get time.

ACK; it matches the patterns used in other events.

-- 
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 539 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20141125/f8b7be79/attachment-0001.sig>


More information about the libvir-list mailing list