X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=src%2Fbasic%2Funit-name.h;h=bba9a4e807a89e589e8d3eaabbde2266e2df10be;hb=9742b1e43855b1599bd52ff95af995d9a9d35eac;hp=5b70f18bed766cc1bc72779bec1399334255055f;hpb=cda8836c1c2fb301a0d3c9182c004c655bf1fdff;p=elogind.git diff --git a/src/basic/unit-name.h b/src/basic/unit-name.h index 5b70f18be..bba9a4e80 100644 --- a/src/basic/unit-name.h +++ b/src/basic/unit-name.h @@ -259,6 +259,15 @@ typedef enum UnitDependency { } UnitDependency; #endif // 0 +typedef enum NotifyAccess { + NOTIFY_NONE, + NOTIFY_ALL, + NOTIFY_MAIN, + NOTIFY_EXEC, + _NOTIFY_ACCESS_MAX, + _NOTIFY_ACCESS_INVALID = -1 +} NotifyAccess; + typedef enum UnitNameFlags { UNIT_NAME_PLAIN = 1, /* Allow foo.service */ UNIT_NAME_INSTANCE = 2, /* Allow foo@bar.service */ @@ -373,3 +382,6 @@ TimerState timer_state_from_string(const char *s) _pure_; const char *unit_dependency_to_string(UnitDependency i) _const_; UnitDependency unit_dependency_from_string(const char *s) _pure_; #endif // 0 + +const char* notify_access_to_string(NotifyAccess i) _const_; +NotifyAccess notify_access_from_string(const char *s) _pure_;