diff options
author | Michal Schmidt <mschmidt@redhat.com> | 2013-02-22 11:21:37 +0100 |
---|---|---|
committer | Michal Schmidt <mschmidt@redhat.com> | 2013-02-22 16:06:17 +0100 |
commit | 23ade460e5a118daa575a961b405d089f95e0617 (patch) | |
tree | b10d6c6ff9f7da39c0dac2ae09540fe63c2cf472 /src/core/transaction.h | |
parent | b7cf6049a36dfd8e5f3c6420243eb49d348dbd2f (diff) |
core, systemctl: add support for irreversible jobs
Add a new job mode: replace-irreversibly. Jobs enqueued using this mode
cannot be implicitly canceled by later enqueued conflicting jobs.
They can however still be canceled with an explicit "systemctl cancel"
call.
Diffstat (limited to 'src/core/transaction.h')
-rw-r--r-- | src/core/transaction.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/core/transaction.h b/src/core/transaction.h index 67ace4da0b..12f9194927 100644 --- a/src/core/transaction.h +++ b/src/core/transaction.h @@ -33,9 +33,10 @@ struct Transaction { /* Jobs to be added */ Hashmap *jobs; /* Unit object => Job object list 1:1 */ Job *anchor_job; /* the job the user asked for */ + bool irreversible; }; -Transaction *transaction_new(void); +Transaction *transaction_new(bool irreversible); void transaction_free(Transaction *tr); int transaction_add_job_and_dependencies( |