Rename xbps_find_pkg_from_plist to xbps_find_pkg_dict_from_plist_by_name.
This commit is contained in:
parent
26701d3bf3
commit
69512d4da7
@ -216,7 +216,7 @@ main(int argc, char **argv)
|
|||||||
if (argc != 2)
|
if (argc != 2)
|
||||||
usage();
|
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)
|
if (dict == NULL)
|
||||||
exit(EXIT_FAILURE);
|
exit(EXIT_FAILURE);
|
||||||
|
|
||||||
|
@ -430,8 +430,8 @@ prop_dictionary_t xbps_find_pkg_in_dict_by_pattern(prop_dictionary_t dict,
|
|||||||
const char *pattern);
|
const char *pattern);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Finds the package's proplib dictionary by looking at it in
|
* Finds the package's proplib dictionary in a plist file by specifying
|
||||||
* a plist file.
|
* a package name.
|
||||||
*
|
*
|
||||||
* @param[in] plist Path to a plist file.
|
* @param[in] plist Path to a plist file.
|
||||||
* @param[in] pkgname Package name to look for.
|
* @param[in] pkgname Package name to look for.
|
||||||
@ -441,7 +441,7 @@ prop_dictionary_t xbps_find_pkg_in_dict_by_pattern(prop_dictionary_t dict,
|
|||||||
* prop_dictionary_copy(), which means that caller is responsible to
|
* prop_dictionary_copy(), which means that caller is responsible to
|
||||||
* release the object with prop_object_release() when done.
|
* release the object with prop_object_release() when done.
|
||||||
*/
|
*/
|
||||||
prop_dictionary_t xbps_find_pkg_from_plist(const char *plist,
|
prop_dictionary_t xbps_find_pkg_dict_from_plist_by_name(const char *plist,
|
||||||
const char *pkgname);
|
const char *pkgname);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -168,7 +168,7 @@ xbps_callback_array_iter_reverse_in_dict(prop_dictionary_t dict,
|
|||||||
}
|
}
|
||||||
|
|
||||||
prop_dictionary_t
|
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;
|
prop_dictionary_t dict, obj, res;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user