summaryrefslogtreecommitdiff
path: root/python/rpmfiles-py.h
diff options
context:
space:
mode:
Diffstat (limited to 'python/rpmfiles-py.h')
-rw-r--r--python/rpmfiles-py.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/python/rpmfiles-py.h b/python/rpmfiles-py.h
new file mode 100644
index 000000000..2e27d3db4
--- /dev/null
+++ b/python/rpmfiles-py.h
@@ -0,0 +1,18 @@
+#ifndef H_RPMFILES_PY
+#define H_RPMFILES_PY
+
+#include <rpm/rpmfiles.h>
+
+typedef struct rpmfileObject_s rpmfileObject;
+typedef struct rpmfilesObject_s rpmfilesObject;
+
+extern PyTypeObject rpmfile_Type;
+extern PyTypeObject rpmfiles_Type;
+
+#define rpmfileObject_Check(v) ((v)->ob_type == &rpmfile_Type)
+#define rpmfilesObject_Check(v) ((v)->ob_type == &rpmfiles_Type)
+
+PyObject * rpmfile_Wrap(rpmfiles files, int ix);
+PyObject * rpmfiles_Wrap(PyTypeObject *subtype, rpmfiles files);
+
+#endif