2020-11-09 05:23:58 +01:00
|
|
|
/* SPDX-License-Identifier: LGPL-2.1-or-later */
|
2012-07-18 19:07:51 +02:00
|
|
|
#pragma once
|
2010-01-23 01:52:57 +01:00
|
|
|
|
2014-12-15 05:12:40 +01:00
|
|
|
#include "dropin.h"
|
2015-11-18 22:46:33 +01:00
|
|
|
#include "unit.h"
|
2010-01-23 01:52:57 +01:00
|
|
|
|
|
|
|
/* Read service data supplementary drop-in directories */
|
|
|
|
|
2014-12-15 05:12:40 +01:00
|
|
|
static inline int unit_find_dropin_paths(Unit *u, char ***paths) {
|
2018-02-23 12:30:14 +01:00
|
|
|
assert(u);
|
|
|
|
|
2019-03-24 20:49:00 +01:00
|
|
|
return unit_file_find_dropin_paths(NULL,
|
|
|
|
u->manager->lookup_paths.search_path,
|
|
|
|
u->manager->unit_path_cache,
|
|
|
|
".d", ".conf",
|
2020-05-27 15:49:17 +02:00
|
|
|
u->id, u->aliases,
|
2019-03-24 20:49:00 +01:00
|
|
|
paths);
|
2014-12-15 05:12:40 +01:00
|
|
|
}
|
|
|
|
|
2010-01-26 21:39:06 +01:00
|
|
|
int unit_load_dropin(Unit *u);
|