chiark / gitweb /
mount: fix loop exit
[elogind.git] / execute.h
index 4f700efd4623c3ddd9f1d7e5e895979d33944d3f..3e332105c1ab15f12bea9d4b82a95e76b15a995c 100644 (file)
--- a/execute.h
+++ b/execute.h
@@ -3,6 +3,25 @@
 #ifndef fooexecutehfoo
 #define fooexecutehfoo
 
+/***
+  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 General Public License as published by
+  the Free Software Foundation; either version 2 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
+  General Public License for more details.
+
+  You should have received a copy of the GNU General Public License
+  along with systemd; If not, see <http://www.gnu.org/licenses/>.
+***/
+
 typedef struct ExecStatus ExecStatus;
 typedef struct ExecCommand ExecCommand;
 typedef struct ExecContext ExecContext;
@@ -71,6 +90,7 @@ struct ExecContext {
         bool timer_slack_ns_set:1;
 
         bool cpu_sched_reset_on_fork;
+        bool non_blocking;
 
         ExecInput input;
         ExecOutput output;
@@ -134,6 +154,7 @@ void exec_command_free_array(ExecCommand **c, unsigned n);
 char *exec_command_line(ExecCommand *c);
 void exec_command_dump(ExecCommand *c, FILE *f, const char *prefix);
 void exec_command_dump_list(ExecCommand *c, FILE *f, const char *prefix);
+void exec_command_append_list(ExecCommand **l, ExecCommand *e);
 
 void exec_context_init(ExecContext *c);
 void exec_context_done(ExecContext *c);