diff options
author | Daniel P. Berrange <berrange@redhat.com> | 2008-11-24 19:28:12 +0000 |
---|---|---|
committer | Daniel P. Berrange <berrange@redhat.com> | 2008-11-24 19:28:12 +0000 |
commit | d46de7156795fa41646e3f8f31cc0e75a6febc8a (patch) | |
tree | a04e49b8ad7df23ee1af7d2cc00969284fcb0698 /libvirt_wrap.h | |
parent | 4d481373b26166c04f89c5e6ddd566dc895d7d20 (diff) | |
download | libvirt-python-v6-d46de7156795fa41646e3f8f31cc0e75a6febc8a.tar.gz libvirt-python-v6-d46de7156795fa41646e3f8f31cc0e75a6febc8a.tar.xz libvirt-python-v6-d46de7156795fa41646e3f8f31cc0e75a6febc8a.zip |
Fix python bindings events code (David Lively)
Diffstat (limited to 'libvirt_wrap.h')
-rw-r--r-- | libvirt_wrap.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/libvirt_wrap.h b/libvirt_wrap.h index 9bcfc96..fa773d2 100644 --- a/libvirt_wrap.h +++ b/libvirt_wrap.h @@ -91,6 +91,14 @@ typedef struct { virEventTimeoutCallback obj; } PyvirEventTimeoutCallback_Object; +#define PyvirFreeCallback_Get(v) (((v) == Py_None) ? NULL : \ + (((PyvirFreeCallback_Object *)(v))->obj)) + +typedef struct { + PyObject_HEAD + virFreeCallback obj; +} PyvirFreeCallback_Object; + #define PyvirVoidPtr_Get(v) (((v) == Py_None) ? NULL : \ (((PyvirVoidPtr_Object *)(v))->obj)) |