chiark / gitweb /
dbus: implement start/stop/restart/reload/cancel D-Bus calls
[elogind.git] / job.h
diff --git a/job.h b/job.h
index 83401e8c1fcf11b576b11349e4ed489d819a9289..132c46db7e5b4e8b5dbb67f9eb7a49750e95c5d0 100644 (file)
--- a/job.h
+++ b/job.h
@@ -46,7 +46,8 @@ enum JobState {
 enum JobMode {
         JOB_FAIL,
         JOB_REPLACE,
-        _JOB_MODE_MAX
+        _JOB_MODE_MAX,
+        _JOB_MODE_INVALID = -1
 };
 
 struct JobDependency {
@@ -114,6 +115,9 @@ JobType job_type_from_string(const char *s);
 const char* job_state_to_string(JobState t);
 JobState job_state_from_string(const char *s);
 
+const char* job_mode_to_string(JobMode t);
+JobMode job_mode_from_string(const char *s);
+
 char *job_dbus_path(Job *j);
 
 #endif