[libvirt] [PATCH v2 1/2] python: Add new helper functions for python to C integral conversion

Eric Blake eblake at redhat.com
Tue Mar 27 20:07:45 UTC 2012


On 03/27/2012 12:06 AM, Guannan Ren wrote:
>     int libvirt_intUnwrap(PyObject *obj, int *val);
>     int libvirt_uintUnwrap(PyObject *obj, unsigned int *val);
>     int libvirt_longUnwrap(PyObject *obj, long *val);
>     int libvirt_ulongUnwrap(PyObject *obj, unsigned long *val);
>     int libvirt_longlongUnwrap(PyObject *obj, long long *val);
>     int libvirt_ulonglongUnwrap(PyObject *obj, unsigned long long *val);
>     int libvirt_doubleUnwrap(PyObject *obj, double *val);
>     int libvirt_boolUnwrap(PyObject *obj, bool *val);
> ---
>  python/typewrappers.c |  132 +++++++++++++++++++++++++++++++++++++++++++++++++
>  python/typewrappers.h |    9 +++
>  2 files changed, 141 insertions(+), 0 deletions(-)

ACK.

-- 
Eric Blake   eblake at 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: 620 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20120327/8c16feb6/attachment-0001.sig>


More information about the libvir-list mailing list