From: Lennart Poettering Date: Wed, 28 Mar 2018 14:45:44 +0000 (+0200) Subject: install: export unit_file_lookup_state() X-Git-Tag: v239~208^2~20 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d6d9827687412a3f1559704839362b8651a07536;p=thirdparty%2Fsystemd.git install: export unit_file_lookup_state() --- diff --git a/src/shared/install.c b/src/shared/install.c index 424f4ccdbbc..ecda662f281 100644 --- a/src/shared/install.c +++ b/src/shared/install.c @@ -99,8 +99,6 @@ static inline void presets_freep(Presets *p) { p->n_rules = 0; } -static int unit_file_lookup_state(UnitFileScope scope, const LookupPaths *paths, const char *name, UnitFileState *ret); - bool unit_type_may_alias(UnitType type) { return IN_SET(type, UNIT_SERVICE, @@ -2643,7 +2641,7 @@ int unit_file_get_default( return 0; } -static int unit_file_lookup_state( +int unit_file_lookup_state( UnitFileScope scope, const LookupPaths *paths, const char *name, diff --git a/src/shared/install.h b/src/shared/install.h index 9dc91429da9..80f98d722e6 100644 --- a/src/shared/install.h +++ b/src/shared/install.h @@ -207,6 +207,12 @@ int unit_file_add_dependency( UnitFileChange **changes, size_t *n_changes); +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_exists(UnitFileScope scope, const LookupPaths *paths, const char *name);