summaryrefslogtreecommitdiff
path: root/python/header-py.h
diff options
context:
space:
mode:
Diffstat (limited to 'python/header-py.h')
-rw-r--r--python/header-py.h26
1 files changed, 26 insertions, 0 deletions
diff --git a/python/header-py.h b/python/header-py.h
new file mode 100644
index 0000000..1103876
--- /dev/null
+++ b/python/header-py.h
@@ -0,0 +1,26 @@
+#ifndef RPMPYTHON_HEADER
+#define RPMPYTHON_HEADER
+
+#include <rpm/rpmtypes.h>
+
+typedef struct hdrObject_s hdrObject;
+
+extern PyTypeObject hdr_Type;
+
+#define hdrObject_Check(v) ((v)->ob_type == &hdr_Type)
+
+#define DEPRECATED_METHOD(_msg) \
+ PyErr_WarnEx(PyExc_PendingDeprecationWarning, (_msg), 2);
+
+extern PyObject * pyrpmError;
+
+PyObject * hdr_Wrap(PyTypeObject *subtype, Header h);
+
+int hdrFromPyObject(PyObject *item, Header *h);
+int utf8FromPyObject(PyObject *item, PyObject **str);
+int tagNumFromPyObject (PyObject *item, rpmTagVal *tagp);
+
+PyObject * labelCompare (PyObject * self, PyObject * args);
+PyObject * versionCompare (PyObject * self, PyObject * args, PyObject * kwds);
+PyObject * rpmMergeHeadersFromFD(PyObject * self, PyObject * args, PyObject * kwds);
+#endif