2 * libvir_wrap.h: type wrappers for libvir python bindings
4 * Copyright (C) 2005 Red Hat, Inc.
6 * Daniel Veillard <veillard@redhat.com>
13 #ifdef ATTRIBUTE_UNUSED
14 #undef ATTRIBUTE_UNUSED
16 #ifndef ATTRIBUTE_UNUSED
17 #define ATTRIBUTE_UNUSED __attribute__ ((__unused__))
18 #endif /* ATTRIBUTE_UNUSED */
20 #define ATTRIBUTE_UNUSED
23 #define PyvirConnect_Get(v) (((v) == Py_None) ? NULL : \
24 (((PyvirConnect_Object *)(v))->obj))
29 } PyvirConnect_Object
;
32 #define PyvirDomain_Get(v) (((v) == Py_None) ? NULL : \
33 (((PyvirDomain_Object *)(v))->obj))
41 PyObject
* libvir_intWrap(int val
);
42 PyObject
* libvir_longWrap(long val
);
43 PyObject
* libvir_longlongWrap(long long val
);
44 PyObject
* libvir_charPtrWrap(char *str
);
45 PyObject
* libvir_constcharPtrWrap(const char *str
);
46 PyObject
* libvir_charPtrConstWrap(const char *str
);
47 PyObject
* libvir_virConnectPtrWrap(virConnectPtr node
);
48 PyObject
* libvir_virDomainPtrWrap(virDomainPtr node
);