diff options
author | Daniel Veillard <veillard@redhat.com> | 2006-02-09 17:45:11 +0000 |
---|---|---|
committer | Daniel Veillard <veillard@redhat.com> | 2006-02-09 17:45:11 +0000 |
commit | 1d8b52d81d55c3591b887364a6c5723ef4fd5197 (patch) | |
tree | b0a2a779345c8a2eab671f79e4da602a04859d5b /libvir_wrap.h | |
parent | fb54944e588be376fcd3fc9e01d8592a86731c41 (diff) | |
download | libvirt-python-split-1d8b52d81d55c3591b887364a6c5723ef4fd5197.tar.gz libvirt-python-split-1d8b52d81d55c3591b887364a6c5723ef4fd5197.tar.xz libvirt-python-split-1d8b52d81d55c3591b887364a6c5723ef4fd5197.zip |
* //* : renamed the project libvirt , this affects all makefiles,v0.0.3
the specs, the icons, the docs, etc ...
* configure.in: prepare for 0.0.3
Daniel
Diffstat (limited to 'libvir_wrap.h')
-rw-r--r-- | libvir_wrap.h | 49 |
1 files changed, 0 insertions, 49 deletions
diff --git a/libvir_wrap.h b/libvir_wrap.h deleted file mode 100644 index 41400c0..0000000 --- a/libvir_wrap.h +++ /dev/null @@ -1,49 +0,0 @@ -/* - * libvir_wrap.h: type wrappers for libvir python bindings - * - * Copyright (C) 2005 Red Hat, Inc. - * - * Daniel Veillard <veillard@redhat.com> - */ - -#include <Python.h> -#include <libvir.h> - -#ifdef __GNUC__ -#ifdef ATTRIBUTE_UNUSED -#undef ATTRIBUTE_UNUSED -#endif -#ifndef ATTRIBUTE_UNUSED -#define ATTRIBUTE_UNUSED __attribute__ ((__unused__)) -#endif /* ATTRIBUTE_UNUSED */ -#else -#define ATTRIBUTE_UNUSED -#endif - -#define PyvirConnect_Get(v) (((v) == Py_None) ? NULL : \ - (((PyvirConnect_Object *)(v))->obj)) - -typedef struct { - PyObject_HEAD - virConnectPtr obj; -} PyvirConnect_Object; - - -#define PyvirDomain_Get(v) (((v) == Py_None) ? NULL : \ - (((PyvirDomain_Object *)(v))->obj)) - -typedef struct { - PyObject_HEAD - virDomainPtr obj; -} PyvirDomain_Object; - - -PyObject * libvir_intWrap(int val); -PyObject * libvir_longWrap(long val); -PyObject * libvir_longlongWrap(long long val); -PyObject * libvir_charPtrWrap(char *str); -PyObject * libvir_constcharPtrWrap(const char *str); -PyObject * libvir_charPtrConstWrap(const char *str); -PyObject * libvir_virConnectPtrWrap(virConnectPtr node); -PyObject * libvir_virDomainPtrWrap(virDomainPtr node); - |