summaryrefslogtreecommitdiff
path: root/src/apk_package.h
diff options
context:
space:
mode:
authorTimo Teras <timo.teras@iki.fi>2009-08-13 14:10:30 +0300
committerTimo Teras <timo.teras@iki.fi>2009-08-13 14:10:30 +0300
commit279513bfbe8f0f37c6fb7f38dc331f0290b19b2f (patch)
treecd6a5aef78391be52fcfb18d95fe6b1ab5ec3f17 /src/apk_package.h
parentb71606dbf42815cc82b5792eb53438673111a4d5 (diff)
downloadapk-tools-279513bfbe8f0f37c6fb7f38dc331f0290b19b2f.tar.gz
apk-tools-279513bfbe8f0f37c6fb7f38dc331f0290b19b2f.tar.bz2
apk-tools-279513bfbe8f0f37c6fb7f38dc331f0290b19b2f.tar.xz
apk-tools-279513bfbe8f0f37c6fb7f38dc331f0290b19b2f.zip
db: implement triggers (fixes #45)
Diffstat (limited to 'src/apk_package.h')
-rw-r--r--src/apk_package.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/apk_package.h b/src/apk_package.h
index 6bca03d..dbd469c 100644
--- a/src/apk_package.h
+++ b/src/apk_package.h
@@ -29,9 +29,6 @@ struct apk_name;
#define APK_SCRIPT_TRIGGER 6
#define APK_SCRIPT_MAX 7
-#define APK_PKG_NOT_INSTALLED 0
-#define APK_PKG_INSTALLED 1
-
#define APK_SIGN_NONE 0
#define APK_SIGN_VERIFY 1
#define APK_SIGN_VERIFY_IDENTITY 2
@@ -71,13 +68,17 @@ struct apk_dependency {
};
APK_ARRAY(apk_dependency_array, struct apk_dependency);
+#define APK_IPKGF_RUN_ALL_TRIGGERS 0x00000001
+
struct apk_installed_package {
struct apk_package *pkg;
+ unsigned int flags;
struct list_head installed_pkgs_list;
struct list_head trigger_pkgs_list;
struct hlist_head owned_dirs;
apk_blob_t script[APK_SCRIPT_MAX];
struct apk_string_array *triggers;
+ struct apk_string_array *pending_triggers;
};
struct apk_package {