Line data Source code
1 : /* SPDX-License-Identifier: LGPL-2.1+ */ 2 : #pragma once 3 : 4 : #include "dropin.h" 5 : #include "unit.h" 6 : 7 : /* Read service data supplementary drop-in directories */ 8 : 9 2797 : static inline int unit_find_dropin_paths(Unit *u, char ***paths) { 10 2797 : assert(u); 11 : 12 8391 : return unit_file_find_dropin_paths(NULL, 13 2797 : u->manager->lookup_paths.search_path, 14 2797 : u->manager->unit_path_cache, 15 : ".d", ".conf", 16 2797 : u->names, 17 : paths); 18 : } 19 : 20 : int unit_load_dropin(Unit *u);