summaryrefslogtreecommitdiff
path: root/lib/oldrpmdb.h
diff options
context:
space:
mode:
authorewt <devnull@localhost>1995-12-27 20:05:14 +0000
committerewt <devnull@localhost>1995-12-27 20:05:14 +0000
commitfcf578890e222e6485fe372e06db63fff028cc0c (patch)
treebfb1c9bfbc038e964737c7dccfeae966a2bfecee /lib/oldrpmdb.h
parent574b4da356896d57f2820f4ad65a5aeb140e81d0 (diff)
downloadlibrpm-tizen-fcf578890e222e6485fe372e06db63fff028cc0c.tar.gz
librpm-tizen-fcf578890e222e6485fe372e06db63fff028cc0c.tar.bz2
librpm-tizen-fcf578890e222e6485fe372e06db63fff028cc0c.zip
changed to use oldrpmdb names insteaed of rpmdb ones
CVS patchset: 106 CVS date: 1995/12/27 20:05:14
Diffstat (limited to 'lib/oldrpmdb.h')
-rw-r--r--lib/oldrpmdb.h88
1 files changed, 46 insertions, 42 deletions
diff --git a/lib/oldrpmdb.h b/lib/oldrpmdb.h
index 67e2630e8..470424dfc 100644
--- a/lib/oldrpmdb.h
+++ b/lib/oldrpmdb.h
@@ -1,13 +1,15 @@
-#ifndef _H_RPMDB
-#define _H_RPMDB
+#ifndef _H_OLDRPMDB
+#define _H_OLDRPMDB
#include <gdbm.h>
#include "oldrpmfile.h"
-typedef enum { RPMDB_NONE, RPMDB_GDBM_ERROR, RPMDB_NO_MEMORY } rpm_error;
+typedef enum {
+ RPMDB_NONE, RPMDB_GDBM_ERROR, RPMDB_NO_MEMORY
+} rpm_error;
-struct rpmdb {
+struct oldrpmdb {
GDBM_FILE packages;
GDBM_FILE nameIndex;
GDBM_FILE pathIndex;
@@ -18,56 +20,58 @@ struct rpmdb {
gdbm_error gdbmError;
};
-enum rpmdbFreeType { RPMDB_NOFREE, RPMDB_FREENAME, RPMDB_FREEALL } ;
+enum oldrpmdbFreeType {
+ RPMDB_NOFREE, RPMDB_FREENAME, RPMDB_FREEALL
+};
-struct rpmdbLabel {
- char * name, * version, * release;
- enum rpmdbFreeType freeType;
- struct rpmdbLabel * next;
- int fileNumber; /* -1 means invalid */
+struct oldrpmdbLabel {
+ char *name, *version, *release;
+ enum oldrpmdbFreeType freeType;
+ struct oldrpmdbLabel *next;
+ int fileNumber; /* -1 means invalid */
};
-struct rpmdbPackageInfo {
- char * name, * version, * release;
- char * labelstr;
+struct oldrpmdbPackageInfo {
+ char *name, *version, *release;
+ char *labelstr;
unsigned int installTime, buildTime;
unsigned int size;
- char * description;
- char * distribution;
- char * vendor;
- char * buildHost;
- char * preamble;
- char * copyright;
+ char *description;
+ char *distribution;
+ char *vendor;
+ char *buildHost;
+ char *preamble;
+ char *copyright;
unsigned int fileCount;
- struct rpmFileInfo * files;
-} ;
+ struct rpmFileInfo *files;
+};
#define RPMDB_READER 1
-int rpmdbOpen(struct rpmdb * rpmdb);
-void rpmdbClose(struct rpmdb * rpmdb);
-struct rpmdbLabel * rpmdbGetAllLabels(struct rpmdb * rpmdb);
-struct rpmdbLabel * rpmdbFindPackagesByFile(struct rpmdb * rpmdb, char * path);
-struct rpmdbLabel * rpmdbFindPackagesByLabel(struct rpmdb * rpmdb,
- struct rpmdbLabel label);
+int oldrpmdbOpen (struct oldrpmdb *oldrpmdb);
+void oldrpmdbClose (struct oldrpmdb *oldrpmdb);
+struct oldrpmdbLabel *oldrpmdbGetAllLabels (struct oldrpmdb *oldrpmdb);
+struct oldrpmdbLabel *oldrpmdbFindPackagesByFile (struct oldrpmdb *oldrpmdb, char *path);
+struct oldrpmdbLabel *oldrpmdbFindPackagesByLabel (struct oldrpmdb *oldrpmdb,
+ struct oldrpmdbLabel label);
-char * rpmdbGetPackageGroup(struct rpmdb * rpmdb, struct rpmdbLabel label);
-char * rpmdbGetPackageGif(struct rpmdb * rpmdb, struct rpmdbLabel label,
- int * size);
-int rpmdbGetPackageInfo(struct rpmdb * rpmdb, struct rpmdbLabel label,
- struct rpmdbPackageInfo * pinfo);
-void rpmdbFreePackageInfo(struct rpmdbPackageInfo package);
+char *oldrpmdbGetPackageGroup (struct oldrpmdb *oldrpmdb, struct oldrpmdbLabel label);
+char *oldrpmdbGetPackageGif (struct oldrpmdb *oldrpmdb, struct oldrpmdbLabel label,
+ int *size);
+int oldrpmdbGetPackageInfo (struct oldrpmdb *oldrpmdb, struct oldrpmdbLabel label,
+ struct oldrpmdbPackageInfo *pinfo);
+void oldrpmdbFreePackageInfo (struct oldrpmdbPackageInfo package);
-struct rpmdbLabel rpmdbMakeLabel(char * name, char * version, char * release,
- int fileNumber, enum rpmdbFreeType freeType);
-void rpmdbFreeLabelList(struct rpmdbLabel * list);
-void rpmdbFreeLabel(struct rpmdbLabel label);
-int rpmdbWasError(struct rpmdb * rpmdb);
+struct oldrpmdbLabel oldrpmdbMakeLabel (char *name, char *version, char *release,
+ int fileNumber, enum oldrpmdbFreeType freeType);
+void oldrpmdbFreeLabelList (struct oldrpmdbLabel *list);
+void oldrpmdbFreeLabel (struct oldrpmdbLabel label);
+int oldrpmdbWasError (struct oldrpmdb *oldrpmdb);
-int rpmdbLabelstrToLabel(char * str, int length, struct rpmdbLabel * label);
-char * rpmdbLabelToLabelstr(struct rpmdbLabel label, int withFileNum);
-int rpmdbLabelCmp(struct rpmdbLabel * one, struct rpmdbLabel * two);
+int oldrpmdbLabelstrToLabel (char *str, int length, struct oldrpmdbLabel *label);
+char *oldrpmdbLabelToLabelstr (struct oldrpmdbLabel label, int withFileNum);
+int oldrpmdbLabelCmp (struct oldrpmdbLabel *one, struct oldrpmdbLabel *two);
-void rpmdbSetPrefix(char * new);
+void oldrpmdbSetPrefix (char *new);
#endif