summaryrefslogtreecommitdiff
path: root/src/core/job.h
diff options
context:
space:
mode:
authorMichal Schmidt <mschmidt@redhat.com>2012-04-20 10:21:37 +0200
committerMichal Schmidt <mschmidt@redhat.com>2012-04-20 17:12:27 +0200
commit97e7d748d1bf26790fc3b2607885f4ac8c4ecf3a (patch)
treebbabe2eb9589c28da467ba4e0d510ac7cd65e98f /src/core/job.h
parent121b3b318042b7fd67ac96601971c1c2f9b77be5 (diff)
job: job_uninstall()
Split the uninstallation of the job from job_free() into a separate function. Adjust the callers. job_free() now only works on unlinked and uninstalled jobs. This enforces clear thinking about job lifetimes.
Diffstat (limited to 'src/core/job.h')
-rw-r--r--src/core/job.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/core/job.h b/src/core/job.h
index 3ce2d65a0d..442b13ef24 100644
--- a/src/core/job.h
+++ b/src/core/job.h
@@ -137,6 +137,7 @@ struct Job {
};
Job* job_new(Manager *m, JobType type, Unit *unit);
+void job_uninstall(Job *j);
void job_free(Job *job);
void job_dump(Job *j, FILE*f, const char *prefix);