X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=src%2Fcondition.h;h=0ce713bc16f14bf498ee799c48e8d5ecea238562;hp=f4903d76d98ce5a36e37b7114a7b0e89215c748e;hb=a2c422cbbe0c420fcfdb7adf1e2ace9c40065cee;hpb=039655a40c77f88e4f9ccc00824f2f483f22f2c1 diff --git a/src/condition.h b/src/condition.h index f4903d76d..0ce713bc1 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);