summaryrefslogtreecommitdiff
path: root/src/apk_database.h
diff options
context:
space:
mode:
authorTimo Teräs <timo.teras@iki.fi>2011-09-09 16:31:11 +0300
committerTimo Teräs <timo.teras@iki.fi>2011-09-09 16:32:31 +0300
commita5a7021658212748e9f787ce23181d3e099aba73 (patch)
tree459384995fc52f096007c3ed4d8d88ca865f998c /src/apk_database.h
parent0e24207c2e4fedb9c0656ed98bc37cd37df44d91 (diff)
downloadapk-tools-a5a7021658212748e9f787ce23181d3e099aba73.tar.gz
apk-tools-a5a7021658212748e9f787ce23181d3e099aba73.tar.bz2
apk-tools-a5a7021658212748e9f787ce23181d3e099aba73.tar.xz
apk-tools-a5a7021658212748e9f787ce23181d3e099aba73.zip
applets: start using solver code
still todo: - 'fix' is missing - 'del -R' does not work - 'upgrade' does not do self-upgrade first ... and a lot of testing.
Diffstat (limited to 'src/apk_database.h')
-rw-r--r--src/apk_database.h13
1 files changed, 5 insertions, 8 deletions
diff --git a/src/apk_database.h b/src/apk_database.h
index a077fe2..61ced6c 100644
--- a/src/apk_database.h
+++ b/src/apk_database.h
@@ -81,15 +81,12 @@ struct apk_db_dir_instance {
gid_t gid;
};
-#define APK_NAME_TOPLEVEL 0x0001
-#define APK_NAME_REINSTALL 0x0002
-#define APK_NAME_TOPLEVEL_OVERRIDE 0x0004
-#define APK_NAME_VISITED 0x8000
-
struct apk_name {
apk_hash_node hash_node;
- unsigned int id;
- unsigned int flags;
+ union {
+ int state_int;
+ void *state_ptr;
+ };
char *name;
struct apk_package_array *pkgs;
struct apk_name_array *rdepends;
@@ -121,7 +118,7 @@ struct apk_db_options {
struct apk_database {
char *root;
int root_fd, lock_fd, cache_fd, cachetmp_fd, keys_fd;
- unsigned name_id, num_repos;
+ unsigned num_repos;
const char *cache_dir;
char *cache_remount_dir;
apk_blob_t *arch;