summaryrefslogtreecommitdiffstats
path: root/lib/libalpm/db.h
diff options
context:
space:
mode:
authorXavier Chantry <shiningxc@gmail.com>2009-01-19 20:45:12 +0100
committerXavier Chantry <shiningxc@gmail.com>2009-01-20 14:04:54 +0100
commit14230869e6a37526f8a1bdb1fb88f23309b10aef (patch)
tree2edc0a14e297426af668acc54ae70f785911b98a /lib/libalpm/db.h
parenteab96848376db6f54f05773a7e924faf0355137f (diff)
downloadpacman-14230869e6a37526f8a1bdb1fb88f23309b10aef.tar.gz
pacman-14230869e6a37526f8a1bdb1fb88f23309b10aef.tar.xz
Remove some db abstraction crap.
These db_open and db_close looked quite useless. And they caused the db directory to be opened on a simple registering of a database. This is totally unneeded, this opening can be delayed to when we actually need it. Signed-off-by: Xavier Chantry <shiningxc@gmail.com>
Diffstat (limited to 'lib/libalpm/db.h')
-rw-r--r--lib/libalpm/db.h3
1 files changed, 0 insertions, 3 deletions
diff --git a/lib/libalpm/db.h b/lib/libalpm/db.h
index edc4c93e..1af16355 100644
--- a/lib/libalpm/db.h
+++ b/lib/libalpm/db.h
@@ -41,7 +41,6 @@ typedef enum _pmdbinfrq_t {
struct __pmdb_t {
char *path;
char *treename;
- void *handle;
unsigned short pkgcache_loaded;
alpm_list_t *pkgcache;
unsigned short grpcache_loaded;
@@ -58,8 +57,6 @@ pmdb_t *_alpm_db_register_local(void);
pmdb_t *_alpm_db_register_sync(const char *treename);
/* be.c, backend specific calls */
-int _alpm_db_open(pmdb_t *db);
-void _alpm_db_close(pmdb_t *db);
int _alpm_db_populate(pmdb_t *db);
int _alpm_db_read(pmdb_t *db, pmpkg_t *info, pmdbinfrq_t inforeq);
int _alpm_db_prepare(pmdb_t *db, pmpkg_t *info);