summaryrefslogtreecommitdiff
path: root/python/rpmfd-py.h
diff options
context:
space:
mode:
authorKim Kibum <kb0929.kim@samsung.com>2012-05-21 17:49:08 +0900
committerKim Kibum <kb0929.kim@samsung.com>2012-05-21 17:49:08 +0900
commitdec48cfa66e17ba4a7e50c92cb24b913289feb12 (patch)
treee1f48cd5cabb40a1d604b36949ff072d01267cb5 /python/rpmfd-py.h
parentb7a3bffb8e0341b7e4ef69def268bca3a7f279ff (diff)
downloadrpm-dec48cfa66e17ba4a7e50c92cb24b913289feb12.tar.gz
rpm-dec48cfa66e17ba4a7e50c92cb24b913289feb12.tar.bz2
rpm-dec48cfa66e17ba4a7e50c92cb24b913289feb12.zip
Upload Tizen:Base source
Diffstat (limited to 'python/rpmfd-py.h')
-rw-r--r--python/rpmfd-py.h17
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