diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2014-12-14 23:12:40 -0500 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2014-12-16 00:30:33 -0500 |
commit | 1a7f1b385cd9de8a0da934fadc379860f914ef33 (patch) | |
tree | 06ff69134de3f57f875679e4fa418497a98a808d /src/core/load-dropin.h | |
parent | 6a057a99854268afe19738022205416bd5a0f4b5 (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.h | 9 |
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); |