summaryrefslogtreecommitdiffstats
path: root/lib/libalpm/db.h
diff options
context:
space:
mode:
authorAllan McRae <allan@archlinux.org>2010-10-13 10:04:07 +0200
committerAllan McRae <allan@archlinux.org>2010-10-14 05:17:38 +0200
commit5b2de3d8ecceea0eed3124e50792400adce4e95a (patch)
treeaeea616ec007697d6478ae75387ba8624a367d9d /lib/libalpm/db.h
parent96e277cfd935d680d6309311260fe79567324e9c (diff)
downloadpacman-5b2de3d8ecceea0eed3124e50792400adce4e95a.tar.gz
pacman-5b2de3d8ecceea0eed3124e50792400adce4e95a.tar.xz
Separate be_files into be_sync and be_local
The file be_files.c is "split" to be_local.c and be_sync.c in order to achieve separate handling of sync and local databases. Some basic clean-up of functions that are only of use for local or sync databases has been performed and some rough function renaming in duplicated code has been performed to prevent compilation errors. However, most of the clean-up and final separation of sync and local db handling occurs in following patches. Signed-off-by: Allan McRae <allan@archlinux.org>
Diffstat (limited to 'lib/libalpm/db.h')
-rw-r--r--lib/libalpm/db.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/lib/libalpm/db.h b/lib/libalpm/db.h
index f4559fe9..8adbc5d1 100644
--- a/lib/libalpm/db.h
+++ b/lib/libalpm/db.h
@@ -70,13 +70,15 @@ alpm_list_t *_alpm_db_search(pmdb_t *db, const alpm_list_t *needles);
pmdb_t *_alpm_db_register_local(void);
pmdb_t *_alpm_db_register_sync(const char *treename);
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_db_prepare(pmdb_t *db, pmpkg_t *info);
-int _alpm_db_write(pmdb_t *db, pmpkg_t *info, pmdbinfrq_t inforeq);
-int _alpm_db_remove(pmdb_t *db, pmpkg_t *info);
+
+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);
/* cache bullshit */
/* packages */