diff options
author | Costa Tsaousis (ktsaou) <costa@tsaousis.gr> | 2016-09-14 23:12:57 +0300 |
---|---|---|
committer | Costa Tsaousis (ktsaou) <costa@tsaousis.gr> | 2016-09-14 23:12:57 +0300 |
commit | b64fab4c7dff65e4dad0627b89d55805700fad69 (patch) | |
tree | be214f65e0470cca5777910c6237f11ca0a6d0fc /src/eval.h | |
parent | 86bb195b7e278ea791cd902ba70a02db322db4de (diff) |
allow expressions to examine the current status of the alarm with $status; special variables are also defined: $REMOVED, $UNINITIALIZED, $UNDEFINED, $CLEAR, $WARNING, $CRITICAL and their values are incremental so that $status > $CLEAR can be checked
Diffstat (limited to 'src/eval.h')
-rw-r--r-- | src/eval.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/eval.h b/src/eval.h index b509a9fa83..d68b9af474 100644 --- a/src/eval.h +++ b/src/eval.h @@ -14,6 +14,7 @@ typedef struct eval_expression { const char *source; const char *parsed_as; + int *status; calculated_number *this; time_t *after; time_t *before; |