From 7527cb527598aaabf0ed9b38a352edb28536392a Mon Sep 17 00:00:00 2001 From: Michal Schmidt Date: Fri, 20 Apr 2012 10:22:07 +0200 Subject: manager: Transaction as an object This makes it obvious that transactions are short-lived. They are created in manager_add_job() and destroyed after the application of jobs. It also prepares for a split of the transaction code to a new source. --- src/core/job.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/core/job.h') diff --git a/src/core/job.h b/src/core/job.h index 442b13ef24..4c543f20b1 100644 --- a/src/core/job.h +++ b/src/core/job.h @@ -141,8 +141,8 @@ void job_uninstall(Job *j); void job_free(Job *job); void job_dump(Job *j, FILE*f, const char *prefix); -JobDependency* job_dependency_new(Job *subject, Job *object, bool matters, bool conflicts); -void job_dependency_free(JobDependency *l); +JobDependency* job_dependency_new(Job *subject, Job *object, bool matters, bool conflicts, Transaction *tr); +void job_dependency_free(JobDependency *l, Transaction *tr); bool job_is_anchor(Job *j); -- cgit v1.2.3