summaryrefslogtreecommitdiff
path: root/job.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2010-02-03 12:37:42 +0100
committerLennart Poettering <lennart@poettering.net>2010-02-03 12:40:01 +0100
commitb548631afcd317fd0f762b324c086d1580f83a50 (patch)
treead6c16aff8ae9def716bce89fbac8b781ed14b92 /job.c
parentdcc47b179fed0ae67b0481b2454aea03947e712c (diff)
dbus: implement start/stop/restart/reload/cancel D-Bus calls
Diffstat (limited to 'job.c')
-rw-r--r--job.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/job.c b/job.c
index d02551aff4..75756e74f1 100644
--- a/job.c
+++ b/job.c
@@ -492,3 +492,10 @@ static const char* const job_type_table[_JOB_TYPE_MAX] = {
};
DEFINE_STRING_TABLE_LOOKUP(job_type, JobType);
+
+static const char* const job_mode_table[_JOB_MODE_MAX] = {
+ [JOB_FAIL] = "fail",
+ [JOB_REPLACE] = "replace"
+};
+
+DEFINE_STRING_TABLE_LOOKUP(job_mode, JobMode);