]> git.ipfire.org Git - thirdparty/systemd.git/blame - src/shared/dropin.h
Merge pull request #17549 from yuwata/tiny-fixes
[thirdparty/systemd.git] / src / shared / dropin.h
CommitLineData
db9ecf05 1/* SPDX-License-Identifier: LGPL-2.1-or-later */
29686440
ZJS
2#pragma once
3
a8fbdf54 4#include "hashmap.h"
f5a4b0d3 5#include "macro.h"
1a7f1b38
ZJS
6#include "set.h"
7#include "unit-name.h"
f5a4b0d3 8
8eea8687 9int drop_in_file(const char *dir, const char *unit, unsigned level,
29686440
ZJS
10 const char *name, char **_p, char **_q);
11
8eea8687 12int write_drop_in(const char *dir, const char *unit, unsigned level,
29686440
ZJS
13 const char *name, const char *data);
14
8eea8687 15int write_drop_in_format(const char *dir, const char *unit, unsigned level,
f5a4b0d3 16 const char *name, const char *format, ...) _printf_(5, 6);
1a7f1b38 17
1a7f1b38 18int unit_file_find_dropin_paths(
17e78d18 19 const char *original_root,
1a7f1b38
ZJS
20 char **lookup_path,
21 Set *unit_path_cache,
95778782
ZJS
22 const char *dir_suffix,
23 const char *file_suffix,
4562c355
ZJS
24 const char *name,
25 const Set *aliases,
1a7f1b38 26 char ***paths);