X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=src%2Fcore%2Fcondition.h;h=50ed955af99dcc6bfdc4728abba3175cf024f7d5;hb=602c0e740f8290cc9c4f13f2eb4b23fbbd7a8d2b;hp=03954e40b3c00160d1917161ca408df1aacef4a9;hpb=742a862bb803641b78a40f6b498486397a321294;p=elogind.git diff --git a/src/core/condition.h b/src/core/condition.h index 03954e40b..50ed955af 100644 --- a/src/core/condition.h +++ b/src/core/condition.h @@ -40,6 +40,7 @@ typedef enum ConditionType { CONDITION_SECURITY, CONDITION_CAPABILITY, CONDITION_HOST, + CONDITION_AC_POWER, CONDITION_NULL, _CONDITION_TYPE_MAX, _CONDITION_TYPE_INVALID = -1 @@ -65,5 +66,5 @@ bool condition_test_list(Condition *c); void condition_dump(Condition *c, FILE *f, const char *prefix); void condition_dump_list(Condition *c, FILE *f, const char *prefix); -const char* condition_type_to_string(ConditionType t); -int condition_type_from_string(const char *s); +const char* condition_type_to_string(ConditionType t) _const_; +int condition_type_from_string(const char *s) _pure_;