summaryrefslogtreecommitdiff
path: root/rpmdb
diff options
context:
space:
mode:
authorPanu Matilainen <pmatilai@redhat.com>2008-01-30 13:53:51 +0200
committerPanu Matilainen <pmatilai@redhat.com>2008-01-30 13:53:51 +0200
commit99faa2735b4b52104a724c6a2f8a7a806bc9c7e5 (patch)
treefb04ea90f8cd28f91a42ef62b20208789acfc0eb /rpmdb
parent7751f84bf03076eb6ad90ad0d10144846726bdfb (diff)
downloadrpm-99faa2735b4b52104a724c6a2f8a7a806bc9c7e5.tar.gz
rpm-99faa2735b4b52104a724c6a2f8a7a806bc9c7e5.tar.bz2
rpm-99faa2735b4b52104a724c6a2f8a7a806bc9c7e5.zip
rpmlib.h mass eviction
- explicitly include what's really needed instead - document remaining uses
Diffstat (limited to 'rpmdb')
-rw-r--r--rpmdb/db3.c2
-rw-r--r--rpmdb/dbconfig.c4
-rw-r--r--rpmdb/hdrNVR.c5
-rw-r--r--rpmdb/rpmdb.c1
-rw-r--r--rpmdb/rpmdb.h2
-rw-r--r--rpmdb/rpmhash.c1
-rw-r--r--rpmdb/sqlite.c2
-rw-r--r--rpmdb/tagname.c2
8 files changed, 12 insertions, 7 deletions
diff --git a/rpmdb/db3.c b/rpmdb/db3.c
index 085bd283a..7cf70361a 100644
--- a/rpmdb/db3.c
+++ b/rpmdb/db3.c
@@ -10,7 +10,7 @@ static int _debug = 1; /* XXX if < 0 debugging, > 0 unusual error returns */
#include <sys/ipc.h>
#endif
-#include <rpm/rpmlib.h>
+#include <rpm/rpmtag.h>
#include <rpm/rpmmacro.h>
#include <rpm/rpmurl.h> /* XXX urlPath proto */
#include <rpm/rpmfileutil.h> /* rpmioMkPath */
diff --git a/rpmdb/dbconfig.c b/rpmdb/dbconfig.c
index 6760fc902..117fd60f4 100644
--- a/rpmdb/dbconfig.c
+++ b/rpmdb/dbconfig.c
@@ -4,7 +4,9 @@
#include "system.h"
-#include <rpm/rpmlib.h>
+#include <popt.h>
+
+#include <rpm/rpmtag.h>
#include <rpm/rpmmacro.h>
#include <rpm/rpmstring.h>
#include <rpm/rpmlog.h>
diff --git a/rpmdb/hdrNVR.c b/rpmdb/hdrNVR.c
index 15aca5160..17790cb81 100644
--- a/rpmdb/hdrNVR.c
+++ b/rpmdb/hdrNVR.c
@@ -3,7 +3,10 @@
*/
#include "system.h"
-#include <rpm/rpmlib.h>
+
+#include <rpm/rpmtypes.h>
+#include <rpm/rpmtag.h>
+
#include "debug.h"
int headerNVR(Header h, const char **np, const char **vp, const char **rp)
diff --git a/rpmdb/rpmdb.c b/rpmdb/rpmdb.c
index 1fcd18e51..92de1e94d 100644
--- a/rpmdb/rpmdb.c
+++ b/rpmdb/rpmdb.c
@@ -14,6 +14,7 @@
#include <regex.h>
+#include <rpm/rpmtag.h>
#include <rpm/rpmurl.h>
#include <rpm/rpmpgp.h>
#include <rpm/rpmpgp.h>
diff --git a/rpmdb/rpmdb.h b/rpmdb/rpmdb.h
index 8d988ac04..bc429d117 100644
--- a/rpmdb/rpmdb.h
+++ b/rpmdb/rpmdb.h
@@ -6,7 +6,7 @@
* Access RPM indices using Berkeley DB interface(s).
*/
-#include <rpm/rpmlib.h>
+#include <rpm/rpmtypes.h>
#include <rpm/rpmsw.h>
#ifdef __cplusplus
diff --git a/rpmdb/rpmhash.c b/rpmdb/rpmhash.c
index 9357f9451..c7f7fc506 100644
--- a/rpmdb/rpmhash.c
+++ b/rpmdb/rpmhash.c
@@ -4,7 +4,6 @@
*/
#include "system.h"
-#include <rpm/rpmlib.h>
#include "rpmdb/rpmhash.h"
#include "debug.h"
diff --git a/rpmdb/sqlite.c b/rpmdb/sqlite.c
index ac2989ed4..4574badf5 100644
--- a/rpmdb/sqlite.c
+++ b/rpmdb/sqlite.c
@@ -26,7 +26,7 @@
#include "system.h"
-#include <rpm/rpmlib.h>
+#include <rpm/rpmtag.h>
#include <rpm/rpmlog.h>
#include <rpm/rpmmacro.h>
#include <rpm/rpmurl.h> /* XXX urlPath proto */
diff --git a/rpmdb/tagname.c b/rpmdb/tagname.c
index 2e6e20b7b..bf7b6bf06 100644
--- a/rpmdb/tagname.c
+++ b/rpmdb/tagname.c
@@ -4,7 +4,7 @@
#include "system.h"
-#include <rpm/rpmlib.h>
+#include <rpm/rpmtag.h>
#include <rpm/rpmstring.h>
#include "debug.h"