]>
git.ipfire.org Git - thirdparty/systemd.git/blob - src/core/transaction.h
06b49d4a5994f4dea26e95fec100dfd181aa4eaf
1 /* SPDX-License-Identifier: LGPL-2.1+ */
5 Copyright 2010 Lennart Poettering
8 typedef struct Transaction Transaction
;
16 /* Jobs to be added */
17 Hashmap
*jobs
; /* Unit object => Job object list 1:1 */
18 Job
*anchor_job
; /* the job the user asked for */
22 Transaction
*transaction_new(bool irreversible
);
23 void transaction_free(Transaction
*tr
);
25 void transaction_add_propagate_reload_jobs(Transaction
*tr
, Unit
*unit
, Job
*by
, bool ignore_order
, sd_bus_error
*e
);
26 int transaction_add_job_and_dependencies(
33 bool ignore_requirements
,
36 int transaction_activate(Transaction
*tr
, Manager
*m
, JobMode mode
, sd_bus_error
*e
);
37 int transaction_add_isolate_jobs(Transaction
*tr
, Manager
*m
);
38 void transaction_abort(Transaction
*tr
);