summaryrefslogtreecommitdiff
path: root/job.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2010-01-30 01:55:42 +0100
committerLennart Poettering <lennart@poettering.net>2010-01-30 01:55:42 +0100
commit94f043472a5af62dc9cd5767e89ba33872212d5e (patch)
tree282af9c7e9af74fd54219f5847a9db6ed202c3a1 /job.h
parent79d6d8160834fdfc964f4b8b2a6b7fb32c7b36c9 (diff)
greatly extend what we enforce as process properties
Diffstat (limited to 'job.h')
-rw-r--r--job.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/job.h b/job.h
index dd5e31aa14..f1a588cbc9 100644
--- a/job.h
+++ b/job.h
@@ -39,7 +39,8 @@ enum JobType {
enum JobState {
JOB_WAITING,
JOB_RUNNING,
- _JOB_STATE_MAX
+ _JOB_STATE_MAX,
+ _JOB_STATE_INVALID = -1
};
enum JobMode {
@@ -98,7 +99,6 @@ bool job_is_anchor(Job *j);
int job_merge(Job *j, Job *other);
-const char* job_type_to_string(JobType t);
int job_type_merge(JobType *a, JobType b);
bool job_type_is_mergeable(JobType a, JobType b);
bool job_type_is_superset(JobType a, JobType b);
@@ -108,4 +108,10 @@ void job_schedule_run(Job *j);
int job_run_and_invalidate(Job *j);
int job_finish_and_invalidate(Job *j, bool success);
+const char* job_type_to_string(JobType t);
+JobType job_type_from_string(const char *s);
+
+const char* job_state_to_string(JobState t);
+JobState job_state_from_string(const char *s);
+
#endif