diff options
Diffstat (limited to 'python/rpmfd-py.h')
-rw-r--r-- | python/rpmfd-py.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/python/rpmfd-py.h b/python/rpmfd-py.h new file mode 100644 index 0000000..b84e174 --- /dev/null +++ b/python/rpmfd-py.h @@ -0,0 +1,17 @@ +#ifndef H_RPMFD_PY +#define H_RPMFD_PY + +#include <rpm/rpmio.h> + +typedef struct rpmfdObject_s rpmfdObject; + +extern PyTypeObject rpmfd_Type; + +#define rpmfdObject_Check(v) ((v)->ob_type == &rpmfd_Type) + +FD_t rpmfdGetFd(rpmfdObject *fdo); + +int rpmfdFromPyObject(PyObject *obj, rpmfdObject **fdop); + + +#endif |