summaryrefslogtreecommitdiff
path: root/src/shared/install.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/install.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/install.h')
-rw-r--r--src/shared/install.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/shared/install.h b/src/shared/install.h
index 18aad65d50..9c33110e44 100644
--- a/src/shared/install.h
+++ b/src/shared/install.h
@@ -136,7 +136,7 @@ int unit_file_set_default(UnitFileScope scope, const char *root_dir, const char
int unit_file_get_default(UnitFileScope scope, const char *root_dir, char **name);
int unit_file_add_dependency(UnitFileScope scope, bool runtime, const char *root_dir, char **files, const char *target, UnitDependency dep, bool force, UnitFileChange **changes, unsigned *n_changes);
-int unit_file_lookup_state(UnitFileScope scope, const char *root_dir, const LookupPaths *paths, const char *name, UnitFileState *ret);
+int unit_file_lookup_state(UnitFileScope scope, const LookupPaths *paths, const char *name, UnitFileState *ret);
int unit_file_get_state(UnitFileScope scope, const char *root_dir, const char *filename, UnitFileState *ret);
int unit_file_get_list(UnitFileScope scope, const char *root_dir, Hashmap *h);