From eefe8c83644892b963b1b4e5fbe297fa4be1f119 Mon Sep 17 00:00:00 2001 From: Dave Reisner Date: Fri, 25 Feb 2011 09:11:37 -0500 Subject: alpm: remove public visibility of pmpkghash_t There's no API functions exposed which allow manipulation of this type, so remove it from public view. Also, rename the public and private alpm_db_get_pkgcache symbol to alpm_db_get_pkgcache_has. Signed-off-by: Dave Reisner Signed-off-by: Dan McGee --- lib/libalpm/db.c | 21 +++------------------ 1 file changed, 3 insertions(+), 18 deletions(-) (limited to 'lib/libalpm/db.c') diff --git a/lib/libalpm/db.c b/lib/libalpm/db.c index 02f82823..bf654063 100644 --- a/lib/libalpm/db.c +++ b/lib/libalpm/db.c @@ -247,21 +247,6 @@ pmpkg_t SYMEXPORT *alpm_db_get_pkg(pmdb_t *db, const char *name) return(_alpm_db_get_pkgfromcache(db, name)); } -/** Get the package cache of a package database - * @param db pointer to the package database to get the package from - * @return the hash of packages on success, NULL on error - */ -pmpkghash_t SYMEXPORT *alpm_db_get_pkgcache(pmdb_t *db) -{ - ALPM_LOG_FUNC; - - /* Sanity checks */ - ASSERT(handle != NULL, return(NULL)); - ASSERT(db != NULL, return(NULL)); - - return(_alpm_db_get_pkgcache(db)); -} - /** Get the package cache of a package database * @param db pointer to the package database to get the package from * @return the list of packages on success, NULL on error @@ -546,7 +531,7 @@ void _alpm_db_free_pkgcache(pmdb_t *db) _alpm_db_free_grpcache(db); } -pmpkghash_t *_alpm_db_get_pkgcache(pmdb_t *db) +pmpkghash_t *_alpm_db_get_pkgcache_hash(pmdb_t *db) { ALPM_LOG_FUNC; @@ -570,7 +555,7 @@ alpm_list_t *_alpm_db_get_pkgcache_list(pmdb_t *db) { ALPM_LOG_FUNC; - pmpkghash_t *hash = _alpm_db_get_pkgcache(db); + pmpkghash_t *hash = _alpm_db_get_pkgcache_hash(db); if(hash == NULL) { return(NULL); @@ -640,7 +625,7 @@ pmpkg_t *_alpm_db_get_pkgfromcache(pmdb_t *db, const char *target) return(NULL); } - pmpkghash_t *pkgcache = _alpm_db_get_pkgcache(db); + pmpkghash_t *pkgcache = _alpm_db_get_pkgcache_hash(db); if(!pkgcache) { _alpm_log(PM_LOG_DEBUG, "warning: failed to get '%s' from NULL pkgcache\n", target); -- cgit v1.2.3-24-g4f1b