Major API/ABI cleanup bringing performance improvements and fixes.

These are the core interfaces in the new API:

rpool - Interface to interact with the repository pool.
rindex - Interface to interact with repository indexes.
pkgdb - Interface to interact with local packages.
transaction - Interface to interact with a transaction.

This also brings new repository index format, making the index file
per architecture and being incompatible with previous versions.

The transaction frequency flush option has been removed, and due to
the nature of package states it was causing more harm than good.

More changes coming soon, but the API shall remain stable from now on.
This commit is contained in:
Juan RP
2012-11-30 07:11:51 +01:00
parent 16e18313da
commit 63c1883201
57 changed files with 1437 additions and 2640 deletions

View File

@ -39,7 +39,7 @@
* These functions manipulate plist files and objects shared by almost
* all library functions.
*/
bool
bool HIDDEN
xbps_add_obj_to_dict(prop_dictionary_t dict, prop_object_t obj,
const char *key)
{
@ -57,7 +57,7 @@ xbps_add_obj_to_dict(prop_dictionary_t dict, prop_object_t obj,
return true;
}
bool
bool HIDDEN
xbps_add_obj_to_array(prop_array_t array, prop_object_t obj)
{
assert(prop_object_type(array) == PROP_TYPE_ARRAY);
@ -249,7 +249,7 @@ array_replace_dict(prop_array_t array,
return ENOENT;
}
int
int HIDDEN
xbps_array_replace_dict_by_name(prop_array_t array,
prop_dictionary_t dict,
const char *pkgname)
@ -257,7 +257,7 @@ xbps_array_replace_dict_by_name(prop_array_t array,
return array_replace_dict(array, dict, pkgname, false);
}
int
int HIDDEN
xbps_array_replace_dict_by_pattern(prop_array_t array,
prop_dictionary_t dict,
const char *pattern)