summaryrefslogtreecommitdiff
path: root/lib/rpmlegacy.h
diff options
context:
space:
mode:
authorPanu Matilainen <pmatilai@redhat.com>2008-07-08 16:23:22 +0300
committerPanu Matilainen <pmatilai@redhat.com>2008-07-08 18:54:28 +0300
commit27a6edd36d39e296e6b13e24974989ad5954abb9 (patch)
treec2a6cefd950c2f856af4365edbced952bbfd9f7d /lib/rpmlegacy.h
parent6778dc94ce0a9234ed74cf094d98e219a295070f (diff)
downloadlibrpm-tizen-27a6edd36d39e296e6b13e24974989ad5954abb9.tar.gz
librpm-tizen-27a6edd36d39e296e6b13e24974989ad5954abb9.tar.bz2
librpm-tizen-27a6edd36d39e296e6b13e24974989ad5954abb9.zip
Add a new legacy compatibility header, kill rpmints.h
- build-time generated rpmints.h causes issues with distcheck and is not really worth the trouble - we have all sorts of legacy junk to deal with, sticking them all into rpmints.h would be just wrong...
Diffstat (limited to 'lib/rpmlegacy.h')
-rw-r--r--lib/rpmlegacy.h29
1 files changed, 29 insertions, 0 deletions
diff --git a/lib/rpmlegacy.h b/lib/rpmlegacy.h
new file mode 100644
index 000000000..f86a81a00
--- /dev/null
+++ b/lib/rpmlegacy.h
@@ -0,0 +1,29 @@
+#ifndef _RPMLEGACY_H
+#define _RPMLEGACY_H
+
+#include <rpm/rpmtypes.h>
+
+/* ==================================================================== */
+/* LEGACY INTERFACES AND TYPES, DO NOT USE IN NEW CODE! */
+/* ==================================================================== */
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+#ifdef _RPM_4_4_COMPAT
+
+/* mappings for legacy types */
+typedef int32_t int_32;
+typedef int16_t int_16;
+typedef int8_t int_8;
+typedef uint32_t uint_32;
+typedef uint16_t uint_16;
+typedef uint8_t uint_8;
+#endif /* _RPM_4_4_COMPAT */
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif /* _RPMLEGACY_H */