Add xbps_remove_{pkgname,string}_from_array() to the API.

This commit is contained in:
Juan RP
2014-09-13 18:13:25 +02:00
parent b42c3d8498
commit dea31f0a15
3 changed files with 25 additions and 5 deletions

View File

@ -104,13 +104,13 @@ remove_obj_from_array(xbps_array_t array, const char *str, int mode)
return true;
}
bool HIDDEN
bool
xbps_remove_string_from_array(xbps_array_t array, const char *str)
{
return remove_obj_from_array(array, str, 0);
}
bool HIDDEN
bool
xbps_remove_pkgname_from_array(xbps_array_t array, const char *str)
{
return remove_obj_from_array(array, str, 1);