diff options
author | Lennart Poettering <lennart@poettering.net> | 2017-06-21 19:17:38 +0200 |
---|---|---|
committer | Sven Eden <yamakuzure@gmx.net> | 2017-07-25 09:46:52 +0200 |
commit | 1b616e07c7863e9dbf041f39099e8af4a38c73f4 (patch) | |
tree | 83bfe911b65cb3232f1874d5afb2f19f93d52aef /src/basic/unit-name.h | |
parent | 39d1301db9c8d38c3454744456127ad8322caae2 (diff) |
core: make NotifyAccess= and FileDescriptorStoreMax= available to transient services
This is helpful for debugging/testing #5606.
Diffstat (limited to 'src/basic/unit-name.h')
-rw-r--r-- | src/basic/unit-name.h | 12 |
1 files changed, 12 insertions, 0 deletions
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_; |