diff options
author | Daniel P. Berrange <berrange@redhat.com> | 2013-12-05 16:08:40 +0000 |
---|---|---|
committer | Daniel P. Berrange <berrange@redhat.com> | 2013-12-11 16:12:54 +0000 |
commit | a933b7f5d10d9f00b3df5e80dedef3f235c34e4e (patch) | |
tree | af4f444383e07703fc1a8715510bf4e9807edff0 /typewrappers.h | |
parent | aac76e7630f5899e221672ef63b46baa066e1b8e (diff) | |
download | libvirt-python-a933b7f5d10d9f00b3df5e80dedef3f235c34e4e.tar.gz |
override: Replace Py{Int,Long}_FromLong with helpers
Replace use of the PyInt_FromLong and PyLong_FromLongLong
with libvirt_{int,uint,longlong,ulonglong}Wrap helpers.
This isolates the need for Python3 specific code in one
place.
Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
Diffstat (limited to 'typewrappers.h')
-rw-r--r-- | typewrappers.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/typewrappers.h b/typewrappers.h index 7068426..6bb193c 100644 --- a/typewrappers.h +++ b/typewrappers.h @@ -157,6 +157,7 @@ typedef struct { } PyvirVoidPtr_Object; PyObject * libvirt_intWrap(int val); +PyObject * libvirt_uintWrap(uint val); PyObject * libvirt_longWrap(long val); PyObject * libvirt_ulongWrap(unsigned long val); PyObject * libvirt_longlongWrap(long long val); |