summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPanu Matilainen <pmatilai@redhat.com>2012-09-07 14:09:35 +0300
committerPanu Matilainen <pmatilai@redhat.com>2012-09-07 14:09:35 +0300
commitd2bb9d38c90d8028989cb414bf84b132b0bbc967 (patch)
treef83d8279c40173a00eb571ebc86575a243cda72c
parentbd33a6656c385ff9c760d79dff753e6bd1c642bd (diff)
downloadlibrpm-tizen-d2bb9d38c90d8028989cb414bf84b132b0bbc967.tar.gz
librpm-tizen-d2bb9d38c90d8028989cb414bf84b132b0bbc967.tar.bz2
librpm-tizen-d2bb9d38c90d8028989cb414bf84b132b0bbc967.zip
Move string pool typedefs to rpmtypes.h
- I suspect these will be used widely, to avoid having to include rpmstrpool.h all over in headers...
-rw-r--r--lib/rpmtypes.h3
-rw-r--r--rpmio/rpmstrpool.h3
2 files changed, 4 insertions, 2 deletions
diff --git a/lib/rpmtypes.h b/lib/rpmtypes.h
index 28ee5a9a6..91ea94907 100644
--- a/lib/rpmtypes.h
+++ b/lib/rpmtypes.h
@@ -77,6 +77,9 @@ typedef void * rpmCallbackData;
typedef struct rpmPubkey_s * rpmPubkey;
typedef struct rpmKeyring_s * rpmKeyring;
+typedef uint32_t rpmsid;
+typedef struct rpmstrPool_s * rpmstrPool;
+
typedef struct rpmPlugins_s * rpmPlugins;
typedef struct rpmgi_s * rpmgi;
diff --git a/rpmio/rpmstrpool.h b/rpmio/rpmstrpool.h
index bc1ed88b9..958a47033 100644
--- a/rpmio/rpmstrpool.h
+++ b/rpmio/rpmstrpool.h
@@ -1,8 +1,7 @@
#ifndef _RPMSTRPOOL_H
#define _RPMSTRPOOL_H
-typedef uint32_t rpmsid;
-typedef struct rpmstrPool_s * rpmstrPool;
+#include <rpm/rpmtypes.h>
#ifdef __cplusplus
extern "C" {