]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
install: export unit_file_lookup_state()
authorLennart Poettering <lennart@poettering.net>
Wed, 28 Mar 2018 14:45:44 +0000 (16:45 +0200)
committerLennart Poettering <lennart@poettering.net>
Thu, 24 May 2018 15:01:57 +0000 (17:01 +0200)
src/shared/install.c
src/shared/install.h

index 424f4ccdbbc1c5bf3b8d8e88d96a5ee882911157..ecda662f28119aef4c7bd1ae0c8b0cde4a8fd943 100644 (file)
@@ -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,
index 9dc91429da993d4e4aef573f87cd7f99b03f1e3d..80f98d722e629c4c4bb0f9b69600de37b29dc0c4 100644 (file)
@@ -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);