chiark / gitweb /
tests: add tests for environment serialization
[elogind.git] / src / basic / unit-name.h
index 94985654f89c208bcb189e83608be57d9c5c2980..bba9a4e807a89e589e8d3eaabbde2266e2df10be 100644 (file)
@@ -196,7 +196,6 @@ typedef enum SwapState {
         _SWAP_STATE_INVALID = -1
 } SwapState;
 
-
 typedef enum TargetState {
         TARGET_DEAD,
         TARGET_ACTIVE,
@@ -260,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 */
@@ -374,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_;