diff options
author | Dan McGee <dan@archlinux.org> | 2007-06-14 11:12:21 -0400 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2007-06-17 13:20:17 -0400 |
commit | cacf968970bbc63e8eb519e40194e6c083ba6a06 (patch) | |
tree | d8a6add3a95dd2dafaf2f8a1a2143097af6b9702 /lib/libalpm/db.c | |
parent | 2ab320a3885226ce28da0f2f2bc84b5f2d0f0539 (diff) | |
download | pacman-cacf968970bbc63e8eb519e40194e6c083ba6a06.tar.xz |
Update Doxyfile and add a few missing parts of documentation
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'lib/libalpm/db.c')
-rw-r--r-- | lib/libalpm/db.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/lib/libalpm/db.c b/lib/libalpm/db.c index 9d75c5c0..470f45aa 100644 --- a/lib/libalpm/db.c +++ b/lib/libalpm/db.c @@ -258,6 +258,10 @@ int SYMEXPORT alpm_db_update(int force, pmdb_t *db) return(0); } +/** Get the name of a package database + * @param db pointer to the package database + * @return the name of the package database, NULL on error + */ const char SYMEXPORT *alpm_db_get_name(const pmdb_t *db) { ALPM_LOG_FUNC; @@ -269,6 +273,10 @@ const char SYMEXPORT *alpm_db_get_name(const pmdb_t *db) return db->treename; } +/** Get a download URL for the package database + * @param db pointer to the package database + * @return a fully-specified download URL, NULL on error + */ const char SYMEXPORT *alpm_db_get_url(const pmdb_t *db) { char path[PATH_MAX]; @@ -400,6 +408,9 @@ alpm_list_t SYMEXPORT *alpm_db_search(pmdb_t *db, const alpm_list_t* needles) /* This function is mostly the same as sync.c find_replacements and sysupgrade * functions, and we should be able to combine them - this is an interim * solution made for -Qu operation */ +/** Get a list of upgradable packages on the current system + * @return a pmsyncpkg_t list of packages that are out of date + */ alpm_list_t SYMEXPORT *alpm_db_get_upgrades() { alpm_list_t *syncpkgs = NULL; |