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.h13
1 files changed, 11 insertions, 2 deletions
diff --git a/src/apk_database.h b/src/apk_database.h
index 03a0751..d270e18 100644
--- a/src/apk_database.h
+++ b/src/apk_database.h
@@ -90,8 +90,13 @@ struct apk_name {
union {
struct apk_solver_name_state ss;
- void *state_ptr;
- int state_int;
+ struct {
+ unsigned int foreach_genid;
+ union {
+ void *state_ptr;
+ int state_int;
+ };
+ };
};
};
@@ -239,4 +244,8 @@ int apk_db_install_pkg(struct apk_database *db,
struct apk_package *newpkg,
apk_progress_cb cb, void *cb_ctx);
+void apk_name_foreach_matching(struct apk_database *db, struct apk_string_array *filter, unsigned int match,
+ void (*cb)(struct apk_database *db, const char *match, struct apk_name *name, void *ctx),
+ void *ctx);
+
#endif