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, 9 insertions, 4 deletions
diff --git a/src/apk_database.h b/src/apk_database.h
index 3d557bd..74af494 100644
--- a/src/apk_database.h
+++ b/src/apk_database.h
@@ -38,10 +38,16 @@ struct apk_db_file {
char name[];
};
+enum apk_protect_mode {
+ APK_PROTECT_NONE = 0,
+ APK_PROTECT_CHANGED,
+ APK_PROTECT_SYMLINKS_ONLY,
+ APK_PROTECT_ALL,
+};
+
struct apk_protected_path {
char *relative_pattern;
- unsigned protected : 1;
- unsigned symlinks_only : 1;
+ unsigned protect_mode : 4;
};
APK_ARRAY(apk_protected_path_array, struct apk_protected_path);
@@ -58,8 +64,7 @@ struct apk_db_dir {
unsigned short refs;
unsigned short namelen;
- unsigned protected : 1;
- unsigned symlinks_only : 1;
+ unsigned protect_mode : 4;
unsigned has_protected_children : 1;
unsigned modified : 1;
unsigned recalc_mode : 1;