summaryrefslogtreecommitdiff
path: root/src/apk_database.h
diff options
context:
space:
mode:
authorTimo Teräs <timo.teras@iki.fi>2013-06-18 13:01:51 +0300
committerTimo Teräs <timo.teras@iki.fi>2013-06-18 13:02:27 +0300
commitfe41ae07b90bbd4609ee6871def851a41027aae8 (patch)
tree7f5a872c5ee030450e3cfdb84a73c9338f69d7f4 /src/apk_database.h
parentc51d82f8f616c2c8939b74c1d78f723ef778f0c8 (diff)
downloadapk-tools-fe41ae07b90bbd4609ee6871def851a41027aae8.tar.gz
apk-tools-fe41ae07b90bbd4609ee6871def851a41027aae8.tar.bz2
apk-tools-fe41ae07b90bbd4609ee6871def851a41027aae8.tar.xz
apk-tools-fe41ae07b90bbd4609ee6871def851a41027aae8.zip
apk: use string array in applet mains, separate apk_name_foreach_matching
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