1
0
mirror of https://github.com/moparisthebest/pacman synced 2024-08-13 17:03:46 -04:00

Remove non-public functions from header

And rename accordingly.

Signed-off-by: Dan McGee <dan@archlinux.org>
This commit is contained in:
Dan McGee 2010-12-13 20:19:32 -06:00
parent 94d3d665f0
commit c00e05992e
3 changed files with 4 additions and 7 deletions

View File

@ -355,7 +355,7 @@ static int is_dir(const char *path, struct dirent *entry)
#endif #endif
} }
int _alpm_local_db_populate(pmdb_t *db) static int local_db_populate(pmdb_t *db)
{ {
int count = 0; int count = 0;
struct dirent *ent = NULL; 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 = { struct db_operations local_db_ops = {
.populate = _alpm_local_db_populate, .populate = local_db_populate,
.unregister = _alpm_db_unregister, .unregister = _alpm_db_unregister,
}; };

View File

@ -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 */ /* 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); 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; int count = 0;
struct archive *archive; struct archive *archive;
@ -424,7 +424,7 @@ error:
} }
struct db_operations sync_db_ops = { struct db_operations sync_db_ops = {
.populate = _alpm_sync_db_populate, .populate = sync_db_populate,
.unregister = _alpm_db_unregister, .unregister = _alpm_db_unregister,
}; };

View File

@ -74,14 +74,11 @@ void _alpm_db_unregister(pmdb_t *db);
pmdb_t *_alpm_db_new(const char *treename, int is_local); pmdb_t *_alpm_db_new(const char *treename, int is_local);
/* be_*.c, backend specific calls */ /* 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_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_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_write(pmdb_t *db, pmpkg_t *info, pmdbinfrq_t inforeq);
int _alpm_local_db_remove(pmdb_t *db, pmpkg_t *info); int _alpm_local_db_remove(pmdb_t *db, pmpkg_t *info);
int _alpm_sync_db_populate(pmdb_t *db);
/* cache bullshit */ /* cache bullshit */
/* packages */ /* packages */
int _alpm_db_load_pkgcache(pmdb_t *db); int _alpm_db_load_pkgcache(pmdb_t *db);