summaryrefslogtreecommitdiff
path: root/src/core/switch-root.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2012-05-21 19:33:39 +0200
committerLennart Poettering <lennart@poettering.net>2012-05-21 19:33:39 +0200
commit416693175bc317ef3fa4963af51a5ee077320d09 (patch)
tree29e0c891e7ee9ad68a59d837a3146f5b253b2649 /src/core/switch-root.h
parent97a66e94700845239cfe628da3569ac06034fa4d (diff)
switch-root: move switch_root() call into its own .c file
Diffstat (limited to 'src/core/switch-root.h')
-rw-r--r--src/core/switch-root.h27
1 files changed, 27 insertions, 0 deletions
diff --git a/src/core/switch-root.h b/src/core/switch-root.h
new file mode 100644
index 0000000000..0c4cd1e403
--- /dev/null
+++ b/src/core/switch-root.h
@@ -0,0 +1,27 @@
+/*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
+
+#ifndef fooswitchroothfoo
+#define fooswitchroothfoo
+
+/***
+ This file is part of systemd.
+
+ Copyright 2012 Harald Hoyer, 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 <http://www.gnu.org/licenses/>.
+***/
+
+int switch_root(const char *switch_root);
+
+#endif