summaryrefslogtreecommitdiff
path: root/src/condition.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2011-03-08 03:04:47 +0100
committerLennart Poettering <lennart@poettering.net>2011-03-08 03:04:47 +0100
commit267632f0ab26bbcec6bc93682cf43d0f983c41d8 (patch)
tree32491e0ade93452809938f44283a38e4fca7be63 /src/condition.h
parent08672cb5071af320127f6fe8d0916f62bedd82f3 (diff)
unit: distuingish mandatory from triggering conditions
Diffstat (limited to 'src/condition.h')
-rw-r--r--src/condition.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/condition.h b/src/condition.h
index f4903d76d9..0ce713bc16 100644
--- a/src/condition.h
+++ b/src/condition.h
@@ -39,12 +39,14 @@ typedef enum ConditionType {
typedef struct Condition {
ConditionType type;
char *parameter;
- bool negate;
+
+ bool trigger:1;
+ bool negate:1;
LIST_FIELDS(struct Condition, conditions);
} Condition;
-Condition* condition_new(ConditionType type, const char *parameter, bool negate);
+Condition* condition_new(ConditionType type, const char *parameter, bool trigger, bool negate);
void condition_free(Condition *c);
void condition_free_list(Condition *c);