summaryrefslogtreecommitdiff
path: root/src/core/unit.h
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2012-06-06 16:56:18 +0200
committerLennart Poettering <lennart@poettering.net>2012-07-10 16:48:08 +0200
commit0a9f8ed00c8f323d5bf24a9a11149a9342c0e1aa (patch)
tree42ecd46d4d40a9c3eb0043b591a79b9968807704 /src/core/unit.h
parentc66d36e5b5ae81f3c5297d6dacadc13c88c530f6 (diff)
unit: Move UnitType definitions from core/unit.c to shared/unit-name.c
This makes it possible to use them from systemctl without linking against the core. A string->enum lookup table is added.
Diffstat (limited to 'src/core/unit.h')
-rw-r--r--src/core/unit.h16
1 files changed, 1 insertions, 15 deletions
diff --git a/src/core/unit.h b/src/core/unit.h
index cfb38d0aa..049b1dbd1 100644
--- a/src/core/unit.h
+++ b/src/core/unit.h
@@ -41,21 +41,7 @@ typedef struct UnitStatusMessageFormats UnitStatusMessageFormats;
#include "execute.h"
#include "condition.h"
#include "install.h"
-
-enum UnitType {
- UNIT_SERVICE = 0,
- UNIT_SOCKET,
- UNIT_TARGET,
- UNIT_DEVICE,
- UNIT_MOUNT,
- UNIT_AUTOMOUNT,
- UNIT_SNAPSHOT,
- UNIT_TIMER,
- UNIT_SWAP,
- UNIT_PATH,
- _UNIT_TYPE_MAX,
- _UNIT_TYPE_INVALID = -1
-};
+#include "unit-name.h"
enum UnitLoadState {
UNIT_STUB,