summaryrefslogtreecommitdiff
path: root/src/apk_database.h
diff options
context:
space:
mode:
authorTimo Teras <timo.teras@iki.fi>2009-07-07 09:27:56 +0300
committerTimo Teras <timo.teras@iki.fi>2009-07-07 09:27:56 +0300
commit1a54de02b585e58511a3db4171ccabb3a3a0cce0 (patch)
tree96200280d5f3200257bd28f81b1f25f1252ef0c6 /src/apk_database.h
parent4d940c7932c32ed6885c72b5a2e70101b018ad8c (diff)
downloadapk-tools-1a54de02b585e58511a3db4171ccabb3a3a0cce0.tar.gz
apk-tools-1a54de02b585e58511a3db4171ccabb3a3a0cce0.tar.bz2
apk-tools-1a54de02b585e58511a3db4171ccabb3a3a0cce0.tar.xz
apk-tools-1a54de02b585e58511a3db4171ccabb3a3a0cce0.zip
db: open flags revisited
more fine grained control what to load, and rename some of the flags to be shorter.
Diffstat (limited to 'src/apk_database.h')
-rw-r--r--src/apk_database.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/apk_database.h b/src/apk_database.h
index 4fb6ac8..1b23d51 100644
--- a/src/apk_database.h
+++ b/src/apk_database.h
@@ -116,8 +116,14 @@ struct apk_db_file *apk_db_file_query(struct apk_database *db,
#define APK_OPENF_READ 0x0000
#define APK_OPENF_WRITE 0x0001
#define APK_OPENF_CREATE 0x0002
-#define APK_OPENF_EMPTY_STATE 0x0004
-#define APK_OPENF_EMPTY_REPOS 0x0008
+#define APK_OPENF_NO_INSTALLED 0x0010
+#define APK_OPENF_NO_SCRIPTS 0x0020
+#define APK_OPENF_NO_WORLD 0x0040
+#define APK_OPENF_NO_REPOS 0x0080
+
+#define APK_OPENF_NO_STATE (APK_OPENF_NO_INSTALLED | \
+ APK_OPENF_NO_SCRIPTS | \
+ APK_OPENF_NO_WORLD)
int apk_db_open(struct apk_database *db, const char *root, unsigned int flags);
int apk_db_write_config(struct apk_database *db);