Git-Url: http://git.frugalware.org/gitweb/gitweb.cgi?p=pacman-g2.git;a=commitdiff;h=2d9006766a1e5c7bd484ef11cf07b171bac2475c
commit 2d9006766a1e5c7bd484ef11cf07b171bac2475c Author: Michel Hermier <herm...@frugalware.org> Date: Thu Oct 2 09:51:08 2014 +0200 libpacman: Use libpacman::package_set and group_set on getters. diff --git a/lib/libpacman/cache.cpp b/lib/libpacman/cache.cpp index 4fc8b7d..16d19c2 100644 --- a/lib/libpacman/cache.cpp +++ b/lib/libpacman/cache.cpp @@ -93,7 +93,7 @@ void _pacman_db_free_pkgcache(Database *db) _pacman_db_clear_grpcache(db); } -FList<Package *> &_pacman_db_get_pkgcache(Database *db) +libpacman::package_set &_pacman_db_get_pkgcache(Database *db) { if(db->pkgcache.empty()) { _pacman_db_load_pkgcache(db); @@ -201,7 +201,7 @@ int _pacman_db_clear_grpcache(Database *db) return 0; } -FList<Group *> &_pacman_db_get_grpcache(Database *db) +libpacman::group_set &_pacman_db_get_grpcache(Database *db) { if(db->grpcache.empty()) { _pacman_db_load_grpcache(db); diff --git a/lib/libpacman/cache.h b/lib/libpacman/cache.h index cf7a2a7..11cdd88 100644 --- a/lib/libpacman/cache.h +++ b/lib/libpacman/cache.h @@ -30,9 +30,9 @@ int _pacman_db_load_pkgcache(libpacman::Database *db); void _pacman_db_free_pkgcache(libpacman::Database *db); int _pacman_db_add_pkgincache(libpacman::Database *db, libpacman::Package *pkg); int _pacman_db_remove_pkgfromcache(libpacman::Database *db, libpacman::Package *pkg); -FList<libpacman::Package *> &_pacman_db_get_pkgcache(libpacman::Database *db); +libpacman::package_set &_pacman_db_get_pkgcache(libpacman::Database *db); /* groups */ -FList<libpacman::Group *> &_pacman_db_get_grpcache(libpacman::Database *db); +libpacman::group_set &_pacman_db_get_grpcache(libpacman::Database *db); libpacman::Group *_pacman_db_get_grpfromcache(libpacman::Database *db, const char *target); #endif /* _PACMAN_CACHE_H */ _______________________________________________ Frugalware-git mailing list Frugalware-git@frugalware.org http://frugalware.org/mailman/listinfo/frugalware-git