diff options
Diffstat (limited to 'python/rpmfd-py.h')
-rw-r--r-- | python/rpmfd-py.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/python/rpmfd-py.h b/python/rpmfd-py.h index 3e2a9ca87..b84e17444 100644 --- a/python/rpmfd-py.h +++ b/python/rpmfd-py.h @@ -7,7 +7,11 @@ typedef struct rpmfdObject_s rpmfdObject; extern PyTypeObject rpmfd_Type; -int rpmFdFromPyObject(PyObject *obj, FD_t *fdp); +#define rpmfdObject_Check(v) ((v)->ob_type == &rpmfd_Type) + +FD_t rpmfdGetFd(rpmfdObject *fdo); + +int rpmfdFromPyObject(PyObject *obj, rpmfdObject **fdop); #endif |