From 69512d4da728ea50beb6b1cefe2862a3bbd646ff Mon Sep 17 00:00:00 2001 From: Juan RP Date: Thu, 27 Jan 2011 12:41:49 +0100 Subject: [PATCH] Rename xbps_find_pkg_from_plist to xbps_find_pkg_dict_from_plist_by_name. --- bin/xbps-uhelper/main.c | 2 +- include/xbps_api.h | 8 ++++---- lib/plist.c | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/bin/xbps-uhelper/main.c b/bin/xbps-uhelper/main.c index 486bc1e9..29a521f1 100644 --- a/bin/xbps-uhelper/main.c +++ b/bin/xbps-uhelper/main.c @@ -216,7 +216,7 @@ main(int argc, char **argv) if (argc != 2) usage(); - dict = xbps_find_pkg_from_plist(plist, argv[1]); + dict = xbps_find_pkg_dict_from_plist_by_name(plist, argv[1]); if (dict == NULL) exit(EXIT_FAILURE); diff --git a/include/xbps_api.h b/include/xbps_api.h index aa08704d..f996cb8c 100644 --- a/include/xbps_api.h +++ b/include/xbps_api.h @@ -430,8 +430,8 @@ prop_dictionary_t xbps_find_pkg_in_dict_by_pattern(prop_dictionary_t dict, const char *pattern); /** - * Finds the package's proplib dictionary by looking at it in - * a plist file. + * Finds the package's proplib dictionary in a plist file by specifying + * a package name. * * @param[in] plist Path to a plist file. * @param[in] pkgname Package name to look for. @@ -441,8 +441,8 @@ prop_dictionary_t xbps_find_pkg_in_dict_by_pattern(prop_dictionary_t dict, * prop_dictionary_copy(), which means that caller is responsible to * release the object with prop_object_release() when done. */ -prop_dictionary_t xbps_find_pkg_from_plist(const char *plist, - const char *pkgname); +prop_dictionary_t xbps_find_pkg_dict_from_plist_by_name(const char *plist, + const char *pkgname); /** * Finds a package's dictionary searching in the registered packages diff --git a/lib/plist.c b/lib/plist.c index 8ac7f12c..7f0d8146 100644 --- a/lib/plist.c +++ b/lib/plist.c @@ -168,7 +168,7 @@ xbps_callback_array_iter_reverse_in_dict(prop_dictionary_t dict, } prop_dictionary_t -xbps_find_pkg_from_plist(const char *plist, const char *pkgname) +xbps_find_pkg_dict_from_plist_by_name(const char *plist, const char *pkgname) { prop_dictionary_t dict, obj, res;