summaryrefslogtreecommitdiff
path: root/src/core/load-dropin.h
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2014-12-14 23:12:40 -0500
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2014-12-16 00:30:33 -0500
commit1a7f1b385cd9de8a0da934fadc379860f914ef33 (patch)
tree06ff69134de3f57f875679e4fa418497a98a808d /src/core/load-dropin.h
parent6a057a99854268afe19738022205416bd5a0f4b5 (diff)
Move dropin listing to shared
No functional change. This is in preparation for using this in systemctl in the future.
Diffstat (limited to 'src/core/load-dropin.h')
-rw-r--r--src/core/load-dropin.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/core/load-dropin.h b/src/core/load-dropin.h
index fd551179e2..1e018c4525 100644
--- a/src/core/load-dropin.h
+++ b/src/core/load-dropin.h
@@ -22,8 +22,15 @@
***/
#include "unit.h"
+#include "dropin.h"
/* Read service data supplementary drop-in directories */
-char **unit_find_dropin_paths(Unit *u);
+static inline int unit_find_dropin_paths(Unit *u, char ***paths) {
+ return unit_file_find_dropin_paths(u->manager->lookup_paths.unit_path,
+ u->manager->unit_path_cache,
+ u->names,
+ paths);
+}
+
int unit_load_dropin(Unit *u);