4 This file is part of systemd.
6 Copyright 2014 Zbigniew Jędrzejewski-Szmek
8 systemd is free software; you can redistribute it and/or modify it
9 under the terms of the GNU Lesser General Public License as published by
10 the Free Software Foundation; either version 2.1 of the License, or
11 (at your option) any later version.
13 systemd is distributed in the hope that it will be useful, but
14 WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 Lesser General Public License for more details.
18 You should have received a copy of the GNU Lesser General Public License
19 along with systemd; If not, see <http://www.gnu.org/licenses/>.
25 #include "unit-name.h"
27 int drop_in_file(const char *dir
, const char *unit
, unsigned level
,
28 const char *name
, char **_p
, char **_q
);
30 int write_drop_in(const char *dir
, const char *unit
, unsigned level
,
31 const char *name
, const char *data
);
33 int write_drop_in_format(const char *dir
, const char *unit
, unsigned level
,
34 const char *name
, const char *format
, ...) _printf_(5, 6);
37 * This callback will be called for each directory entry @entry,
38 * with @filepath being the full path to the entry.
40 * If return value is negative, loop will be aborted.
42 typedef int (*dependency_consumer_t
)(UnitDependency dependency
,
47 int unit_file_process_dir(
48 Set
* unit_path_cache
,
49 const char *unit_path
,
52 UnitDependency dependency
,
53 dependency_consumer_t consumer
,
57 int unit_file_find_dropin_paths(