]> git.ipfire.org Git - thirdparty/systemd.git/blobdiff - src/shared/install.h
resolved: rework parsing of /etc/hosts
[thirdparty/systemd.git] / src / shared / install.h
index 9dc91429da993d4e4aef573f87cd7f99b03f1e3d..e452940991743a4aab89c5fe9e380912a6670ea4 100644 (file)
@@ -1,12 +1,6 @@
 /* SPDX-License-Identifier: LGPL-2.1+ */
 #pragma once
 
-/***
-  This file is part of systemd.
-
-  Copyright 2011 Lennart Poettering
-***/
-
 typedef enum UnitFileScope UnitFileScope;
 typedef enum UnitFileState UnitFileState;
 typedef enum UnitFilePresetMode UnitFilePresetMode;
@@ -68,9 +62,9 @@ enum UnitFileChangeType {
 };
 
 enum UnitFileFlags {
-        UNIT_FILE_RUNTIME = 1U << 0,
-        UNIT_FILE_FORCE   = 1U << 1,
-        UNIT_FILE_DRY_RUN = 1U << 2,
+        UNIT_FILE_RUNTIME = 1 << 0,
+        UNIT_FILE_FORCE   = 1 << 1,
+        UNIT_FILE_DRY_RUN = 1 << 2,
 };
 
 /* type can either one of the UnitFileChangeTypes listed above, or a negative error.
@@ -207,6 +201,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);