summaryrefslogtreecommitdiff
path: root/src/apk_database.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/apk_database.h')
-rw-r--r--src/apk_database.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/apk_database.h b/src/apk_database.h
index 649cfc0..5818eb4 100644
--- a/src/apk_database.h
+++ b/src/apk_database.h
@@ -164,6 +164,7 @@ struct apk_database {
int compat_newfeatures : 1;
int compat_notinstallable : 1;
int sorted_names : 1;
+ int sorted_installed_packages : 1;
struct apk_dependency_array *world;
struct apk_protected_path_array *protected_paths;
@@ -183,6 +184,7 @@ struct apk_database {
} available;
struct {
+ struct apk_package_array *sorted_packages;
struct list_head packages;
struct list_head triggers;
struct apk_hash dirs;
@@ -277,6 +279,9 @@ int apk_db_install_pkg(struct apk_database *db,
struct apk_package *newpkg,
apk_progress_cb cb, void *cb_ctx);
+
+struct apk_package_array *apk_db_sorted_installed_packages(struct apk_database *db);
+
typedef int (*apk_db_foreach_name_cb)(struct apk_database *db, const char *match, struct apk_name *name, void *ctx);
int apk_db_foreach_matching_name(struct apk_database *db, struct apk_string_array *filter,