summaryrefslogtreecommitdiff
path: root/src/shared/path-lookup.h
diff options
context:
space:
mode:
authorIvan Shapovalov <intelfx100@gmail.com>2014-12-19 17:08:07 +0300
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2015-01-05 11:13:30 -0500
commit60d27f1916c90871c063819a6e7d586c7a663789 (patch)
tree3affd63ba875e2491f6870c99e0e8c3fe1d5a80c /src/shared/path-lookup.h
parent69c4e2771ec58d111191afe397a402e488e223ba (diff)
path-lookup, systemctl: export lookup_paths_init_from_scope() from shared/install.c and use it
Diffstat (limited to 'src/shared/path-lookup.h')
-rw-r--r--src/shared/path-lookup.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/shared/path-lookup.h b/src/shared/path-lookup.h
index b8a0aace8..655e4549c 100644
--- a/src/shared/path-lookup.h
+++ b/src/shared/path-lookup.h
@@ -22,6 +22,7 @@
***/
#include "macro.h"
+#include "install.h"
typedef struct LookupPaths {
char **unit_path;
@@ -49,5 +50,8 @@ int lookup_paths_init(LookupPaths *p,
const char *generator_early,
const char *generator_late);
void lookup_paths_free(LookupPaths *p);
+int lookup_paths_init_from_scope(LookupPaths *paths,
+ UnitFileScope scope,
+ const char *root_dir);
#define _cleanup_lookup_paths_free_ _cleanup_(lookup_paths_free)