]> git.ipfire.org Git - thirdparty/libvirt.git/commit
python: Add new helper functions for python to C integral conversion
authorGuannan Ren <gren@redhat.com>
Tue, 27 Mar 2012 06:06:10 +0000 (14:06 +0800)
committerEric Blake <eblake@redhat.com>
Wed, 28 Mar 2012 14:42:40 +0000 (08:42 -0600)
commit384ebd3fc5deec035d6894352a25fd2b7f637cf0
treef337d15f2d20153ede686dc989f865d2154a687f
parent3ff4b069682ede6f599ba401fd712d34fcf0882f
python: Add new helper functions for python to C integral conversion

    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
python/typewrappers.h