From c00e05992e142219c30caf154d62d6166ae28338 Mon Sep 17 00:00:00 2001 From: Dan McGee Date: Mon, 13 Dec 2010 20:19:32 -0600 Subject: Remove non-public functions from header And rename accordingly. Signed-off-by: Dan McGee --- lib/libalpm/be_local.c | 4 ++-- lib/libalpm/be_sync.c | 4 ++-- lib/libalpm/db.h | 3 --- 3 files changed, 4 insertions(+), 7 deletions(-) diff --git a/lib/libalpm/be_local.c b/lib/libalpm/be_local.c index 7d5d0c2d..f2ea0e15 100644 --- a/lib/libalpm/be_local.c +++ b/lib/libalpm/be_local.c @@ -355,7 +355,7 @@ static int is_dir(const char *path, struct dirent *entry) #endif } -int _alpm_local_db_populate(pmdb_t *db) +static int local_db_populate(pmdb_t *db) { int count = 0; struct dirent *ent = NULL; @@ -912,7 +912,7 @@ int _alpm_local_db_remove(pmdb_t *db, pmpkg_t *info) } struct db_operations local_db_ops = { - .populate = _alpm_local_db_populate, + .populate = local_db_populate, .unregister = _alpm_db_unregister, }; diff --git a/lib/libalpm/be_sync.c b/lib/libalpm/be_sync.c index 6059277b..72caa507 100644 --- a/lib/libalpm/be_sync.c +++ b/lib/libalpm/be_sync.c @@ -144,7 +144,7 @@ int SYMEXPORT alpm_db_update(int force, pmdb_t *db) /* Forward decl so I don't reorganize the whole file right now */ static int sync_db_read(pmdb_t *db, struct archive *archive, struct archive_entry *entry); -int _alpm_sync_db_populate(pmdb_t *db) +static int sync_db_populate(pmdb_t *db) { int count = 0; struct archive *archive; @@ -424,7 +424,7 @@ error: } struct db_operations sync_db_ops = { - .populate = _alpm_sync_db_populate, + .populate = sync_db_populate, .unregister = _alpm_db_unregister, }; diff --git a/lib/libalpm/db.h b/lib/libalpm/db.h index d3b99f43..ace366d1 100644 --- a/lib/libalpm/db.h +++ b/lib/libalpm/db.h @@ -74,14 +74,11 @@ 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_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); - /* cache bullshit */ /* packages */ int _alpm_db_load_pkgcache(pmdb_t *db); -- cgit v1.2.3-70-g09d2