summaryrefslogtreecommitdiff
path: root/src/shared/path-lookup.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2016-02-25 00:16:51 +0100
committerLennart Poettering <lennart@poettering.net>2016-04-12 13:43:30 +0200
commite4bb56c7a946190c348a3c686af6cb35661fa5fe (patch)
treee7e4f6ab3b1d2fe789a670e339a826d85772c76c /src/shared/path-lookup.h
parent32c0ed7bbb94037a50c267f25071522dc8eb3e68 (diff)
install: add root directory to LookupPaths structure
We use the root directory parameter while putting together the LookupPaths structure, hence let's also store it in the structure as-is. That way we can drop a parameter from half of the functions in install.c Also, let's move the validation of the root paths into lookup_paths_init() so that we can drop even more code from install.c
Diffstat (limited to 'src/shared/path-lookup.h')
-rw-r--r--src/shared/path-lookup.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/shared/path-lookup.h b/src/shared/path-lookup.h
index 974db79509..078c3484f5 100644
--- a/src/shared/path-lookup.h
+++ b/src/shared/path-lookup.h
@@ -37,6 +37,9 @@ struct LookupPaths {
char *generator;
char *generator_early;
char *generator_late;
+
+ /* The root directory prepended to all items above, or NULL */
+ char *root_dir;
};
int user_config_home(char **config_home);