summaryrefslogtreecommitdiff
path: root/src/path-lookup.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2010-06-15 14:45:15 +0200
committerLennart Poettering <lennart@poettering.net>2010-06-15 14:45:15 +0200
commit84e3543ef4c4758621f8a304b14642072303ef82 (patch)
tree3b9bdff9d82ec324ccf3d60e26e064cf773db588 /src/path-lookup.h
parent2ded0c0442f597dc397f7b0e9a15cf453578d11e (diff)
manager: split off path lookup logic into own .c file
Diffstat (limited to 'src/path-lookup.h')
-rw-r--r--src/path-lookup.h36
1 files changed, 36 insertions, 0 deletions
diff --git a/src/path-lookup.h b/src/path-lookup.h
new file mode 100644
index 0000000000..a04d5a0fab
--- /dev/null
+++ b/src/path-lookup.h
@@ -0,0 +1,36 @@
+/*-*- Mode: C; c-basic-offset: 8 -*-*/
+
+#ifndef foopathlookuphfoo
+#define foopathlookuphfoo
+
+/***
+ 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 LookupPaths {
+ char **unit_path;
+ char **sysvinit_path;
+ char **sysvrcnd_path;
+} LookupPaths;
+
+#include "manager.h"
+
+int lookup_paths_init(LookupPaths *p, ManagerRunningAs running_as);
+void lookup_paths_free(LookupPaths *p);
+
+#endif