Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/lib/libalpm/db.h
diff options
context:
space:
mode:
authorAurelien Foret <aurelien@archlinux.org>2006-02-15 22:51:28 +0000
committerAurelien Foret <aurelien@archlinux.org>2006-02-15 22:51:28 +0000
commit6e76fd8af3113a28280077ba3da016c01a760ba2 (patch)
tree5c818cd1736168a7e4ace2d50d8180a3584bae6f /lib/libalpm/db.h
parent2e128d3a41602b2e5c2f793b685175decce1bac0 (diff)
- merged db_open and db_create into one single function
- moved the .lastupdate support to the frontend
Diffstat (limited to 'lib/libalpm/db.h')
-rw-r--r--lib/libalpm/db.h10
1 files changed, 3 insertions, 7 deletions
diff --git a/lib/libalpm/db.h b/lib/libalpm/db.h
index 4cde6d2a..cd53d01c 100644
--- a/lib/libalpm/db.h
+++ b/lib/libalpm/db.h
@@ -35,7 +35,8 @@
#define INFRQ_ALL 0xFF
#define DB_TREENAME_LEN 128
-#define DB_UPDATE_LEN 16
+
+#define DB_O_CREATE 0x01
/* Database */
typedef struct __pmdb_t {
@@ -44,15 +45,10 @@ typedef struct __pmdb_t {
DIR *dir;
PMList *pkgcache;
PMList *grpcache;
- char lastupdate[DB_UPDATE_LEN];
} pmdb_t;
-pmdb_t *db_open(char *root, char *dbpath, char *treename);
+pmdb_t *db_open(char *root, char *dbpath, char *treename, int mode);
void db_close(pmdb_t *db);
-int db_create(char *root, char *dbpath, char *treename);
-
-int db_getlastupdate(pmdb_t *db, char *ts);
-int db_setlastupdate(pmdb_t *db, char *ts);
void db_rewind(pmdb_t *db);
pmpkg_t *db_scan(pmdb_t *db, char *target, unsigned int inforeq);