chiark / gitweb /
job: job_new() can find the manager from the unit
[elogind.git] / src / core / job.h
index 4c543f20b13f7af48dae2b24c52b9aaa6f4177bf..35c213d7400a3acf64493b44d093bf18b1a9bc47 100644 (file)
@@ -34,6 +34,7 @@ typedef enum JobMode JobMode;
 typedef enum JobResult JobResult;
 
 #include "manager.h"
+#include "transaction.h"
 #include "unit.h"
 #include "hashmap.h"
 #include "list.h"
@@ -136,7 +137,7 @@ struct Job {
         bool ignore_order:1;
 };
 
-Job* job_new(Manager *m, JobType type, Unit *unit);
+Job* job_new(Unit *unit, JobType type);
 void job_uninstall(Job *j);
 void job_free(Job *job);
 void job_dump(Job *j, FILE*f, const char *prefix);