diff options
author | Michal Schmidt <mschmidt@redhat.com> | 2012-04-20 10:21:37 +0200 |
---|---|---|
committer | Michal Schmidt <mschmidt@redhat.com> | 2012-04-20 17:12:27 +0200 |
commit | 97e7d748d1bf26790fc3b2607885f4ac8c4ecf3a (patch) | |
tree | bbabe2eb9589c28da467ba4e0d510ac7cd65e98f /src/core/job.h | |
parent | 121b3b318042b7fd67ac96601971c1c2f9b77be5 (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.h | 1 |
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); |