X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=src%2Fcore%2Ftransaction.h;h=12f9194927c5b3c1ab33064418f9eb006b8bcec6;hp=4818cea38e654e2b5efef96ae6472d72937d35e5;hb=fea7838e7e0b2724f5e0bc028121a08b42995045;hpb=b94fbd30781d7533492cec65bf7d86fa19a1a074 diff --git a/src/core/transaction.h b/src/core/transaction.h index 4818cea38..12f919492 100644 --- a/src/core/transaction.h +++ b/src/core/transaction.h @@ -1,6 +1,27 @@ +/*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/ + #ifndef footransactionhfoo #define footransactionhfoo +/*** + This file is part of systemd. + + Copyright 2010 Lennart Poettering + + systemd is free software; you can redistribute it and/or modify it + under the terms of the GNU Lesser General Public License as published by + the Free Software Foundation; either version 2.1 of the License, or + (at your option) any later version. + + systemd is distributed in the hope that it will be useful, but + WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public License + along with systemd; If not, see . +***/ + typedef struct Transaction Transaction; #include "unit.h" @@ -11,11 +32,11 @@ typedef struct Transaction Transaction; struct Transaction { /* Jobs to be added */ Hashmap *jobs; /* Unit object => Job object list 1:1 */ - JobDependency *anchor; 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(