diff options
author | Allan McRae <allan@archlinux.org> | 2010-10-09 12:16:15 +0200 |
---|---|---|
committer | Allan McRae <allan@archlinux.org> | 2010-10-14 05:17:39 +0200 |
commit | fc32faaa6ab4081e2046b2a81e4f9949af2f7282 (patch) | |
tree | b800c442e7ec22e2a3f96dd8f56212ee1d5300c1 /lib/libalpm/db.h | |
parent | 5b2de3d8ecceea0eed3124e50792400adce4e95a (diff) | |
download | pacman-fc32faaa6ab4081e2046b2a81e4f9949af2f7282.tar.gz pacman-fc32faaa6ab4081e2046b2a81e4f9949af2f7282.tar.xz |
Completely separate local and sync db handling
Put the db_operations struct to use and completely split the handling
of the sync and local databases.
Signed-off-by: Allan McRae <allan@archlinux.org>
Diffstat (limited to 'lib/libalpm/db.h')
-rw-r--r-- | lib/libalpm/db.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/libalpm/db.h b/lib/libalpm/db.h index 8adbc5d1..72801115 100644 --- a/lib/libalpm/db.h +++ b/lib/libalpm/db.h @@ -60,7 +60,6 @@ struct __pmdb_t { struct db_operations *ops; }; -extern struct db_operations default_db_ops; /* db.c, database general calls */ void _alpm_db_free(pmdb_t *db); @@ -73,12 +72,13 @@ void _alpm_db_unregister(pmdb_t *db); pmdb_t *_alpm_db_new(const char *treename, int is_local); /* be.c, backend specific calls */ -int _alpm_db_populate(pmdb_t *db); -int _alpm_db_read(pmdb_t *db, pmpkg_t *info, pmdbinfrq_t inforeq); - +int _alpm_local_db_populate(pmdb_t *db); +int _alpm_local_db_read(pmdb_t *db, pmpkg_t *info, pmdbinfrq_t inforeq); int _alpm_local_db_prepare(pmdb_t *db, pmpkg_t *info); int _alpm_local_db_write(pmdb_t *db, pmpkg_t *info, pmdbinfrq_t inforeq); int _alpm_local_db_remove(pmdb_t *db, pmpkg_t *info); +int _alpm_sync_db_populate(pmdb_t *db); +int _alpm_sync_db_read(pmdb_t *db, pmpkg_t *info, pmdbinfrq_t inforeq); /* cache bullshit */ /* packages */ |