summaryrefslogtreecommitdiff
path: root/manager.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2010-01-20 02:12:51 +0100
committerLennart Poettering <lennart@poettering.net>2010-01-20 02:12:51 +0100
commite5b5ae50f02d7814f37b15329da2adce0fb30825 (patch)
treeacb76787259f194fb228c9401d5544cb97aa3937 /manager.h
parentf00b3eda2f92b2dcd13c50749ec5e7fce6720b52 (diff)
implement transaction engine
Diffstat (limited to 'manager.h')
-rw-r--r--manager.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/manager.h b/manager.h
index 3ee3b0ac59..ad62b74a74 100644
--- a/manager.h
+++ b/manager.h
@@ -29,13 +29,11 @@ struct Manager {
/* Names that need to be loaded */
LIST_HEAD(Meta, load_queue); /* this is actually more a stack than a queue, but uh. */
- /* Jobs to be added resp. removed. */
- Hashmap *jobs_to_add; /* Name object => Job object 1:1 */
- Set *jobs_to_remove;
+ /* Jobs to be added */
+ Hashmap *transaction_jobs; /* Name object => Job object list 1:1 */
+ JobDependency *transaction_anchor;
bool dispatching_load_queue:1;
-
- unsigned n_dependency_depth;
};
Manager* manager_new(void);
@@ -45,9 +43,11 @@ Job *manager_get_job(Manager *m, uint32_t id);
Name *manager_get_name(Manager *m, const char *name);
int manager_load_name(Manager *m, const char *name, Name **_ret);
-int manager_add_job(Manager *m, JobType job, Name *name, JobMode mode, Job **_ret);
+int manager_add_job(Manager *m, JobType type, Name *name, JobMode mode, bool force, Job **_ret);
void manager_dump_names(Manager *s, FILE *f);
void manager_dump_jobs(Manager *s, FILE *f);
+void manager_transaction_delete_job(Manager *m, Job *j);
+
#endif