Introduce xbps_regpkgdb_remove_pkgd, and use regpkgdb funcs to make xbps-uhelper work.

This commit is contained in:
Juan RP
2011-12-24 16:09:30 +01:00
parent 39d064aff8
commit 5a1ab26972
3 changed files with 27 additions and 12 deletions

View File

@ -56,7 +56,7 @@
*/
#define XBPS_PKGINDEX_VERSION "1.3"
#define XBPS_API_VERSION "20111224"
#define XBPS_API_VERSION "20111224-1"
#define XBPS_VERSION "0.12"
/**
@ -821,6 +821,16 @@ int xbps_regpkgdb_foreach_reverse_pkg_cb(
*/
prop_dictionary_t xbps_regpkgdb_get_pkgd(const char *pkg, bool bypattern);
/**
* Removes a package dictionary from regpkgdb plist matching the key
* \a pkgname.
*
* @param[in] pkgname Package name to match in a dictionary.
*
* @return true on success, false otherwise.
*/
bool xbps_regpkgdb_remove_pkgd(const char *pkgname);
/**
* Updates the regpkgdb plist with new contents from disk to the cached copy
* in memory.