chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fixes to the dbus code to make GetAll() in the properties iface work
[elogind.git]
/
job.h
diff --git
a/job.h
b/job.h
index dd5e31aa1400d7c0ceb6981cdbecb261c3d93b26..83401e8c1fcf11b576b11349e4ed489d819a9289 100644
(file)
--- a/
job.h
+++ b/
job.h
@@
-39,7
+39,8
@@
enum JobType {
enum JobState {
JOB_WAITING,
JOB_RUNNING,
enum JobState {
JOB_WAITING,
JOB_RUNNING,
- _JOB_STATE_MAX
+ _JOB_STATE_MAX,
+ _JOB_STATE_INVALID = -1
};
enum JobMode {
};
enum JobMode {
@@
-98,7
+99,6
@@
bool job_is_anchor(Job *j);
int job_merge(Job *j, Job *other);
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);
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,12
@@
void job_schedule_run(Job *j);
int job_run_and_invalidate(Job *j);
int job_finish_and_invalidate(Job *j, bool success);
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);
+
+char *job_dbus_path(Job *j);
+
#endif
#endif