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=74d74616a35d990edbdfd8f7ea886852173a57f0;hb=245802dd89ccf10de446faff5577e041d5372062;hpb=e6eda1f23efab618bb26e7015230d8552b401dc6 diff --git a/src/core/transaction.h b/src/core/transaction.h index 74d74616a..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" @@ -12,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(