summaryrefslogtreecommitdiff
path: root/src/shared/path-lookup.h
diff options
context:
space:
mode:
authorAndy Wingo <wingo@pobox.com>2015-04-19 17:02:47 +0200
committerSven Eden <yamakuzure@gmx.net>2017-03-14 10:00:18 +0100
commit30ab6a0fc1bb950c4dcd90dcd3dfe00a810c7fc1 (patch)
tree42edfca39d82f6329ab57fc161c2ab8fa0c95f88 /src/shared/path-lookup.h
parent3a9caaf5b886804095708233a52c10e5a652c0d8 (diff)
Get rid of some more unused defines and dirs
Diffstat (limited to 'src/shared/path-lookup.h')
-rw-r--r--src/shared/path-lookup.h23
1 files changed, 10 insertions, 13 deletions
diff --git a/src/shared/path-lookup.h b/src/shared/path-lookup.h
index f4f9895bb..3982974ba 100644
--- a/src/shared/path-lookup.h
+++ b/src/shared/path-lookup.h
@@ -23,35 +23,32 @@
#include "macro.h"
+typedef enum UnitFileScope UnitFileScope;
+
typedef struct LookupPaths {
char **unit_path;
} LookupPaths;
-typedef enum ManagerRunningAs {
- MANAGER_SYSTEM,
- MANAGER_USER,
- _MANAGER_RUNNING_AS_MAX,
- _MANAGER_RUNNING_AS_INVALID = -1
-} ManagerRunningAs;
+typedef enum SystemdRunningAs {
+ SYSTEMD_SYSTEM,
+ SYSTEMD_USER,
+ _SYSTEMD_RUNNING_AS_MAX,
+ _SYSTEMD_RUNNING_AS_INVALID = -1
+} SystemdRunningAs;
int user_config_home(char **config_home);
int user_runtime_dir(char **runtime_dir);
-char **generator_paths(ManagerRunningAs running_as);
-
int lookup_paths_init(LookupPaths *p,
- ManagerRunningAs running_as,
+ SystemdRunningAs running_as,
bool personal,
const char *root_dir,
const char *generator,
const char *generator_early,
const char *generator_late);
-
-#include "install.h"
-
+void lookup_paths_free(LookupPaths *p);
int lookup_paths_init_from_scope(LookupPaths *paths,
UnitFileScope scope,
const char *root_dir);
-void lookup_paths_free(LookupPaths *p);
#define _cleanup_lookup_paths_free_ _cleanup_(lookup_paths_free)