Rename xbps_find_pkg_from_plist to xbps_find_pkg_dict_from_plist_by_name.

This commit is contained in:
Juan RP 2011-01-27 12:41:49 +01:00
parent 26701d3bf3
commit 69512d4da7
3 changed files with 6 additions and 6 deletions

View File

@ -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);

View File

@ -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

View File

@ -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;