2020-11-09 05:23:58 +01:00
|
|
|
/* SPDX-License-Identifier: LGPL-2.1-or-later */
|
2014-06-27 18:12:07 +02:00
|
|
|
#pragma once
|
|
|
|
|
2015-12-03 21:13:37 +01:00
|
|
|
#include "hashmap.h"
|
2014-07-07 21:40:00 +02:00
|
|
|
#include "macro.h"
|
2014-12-15 05:12:40 +01:00
|
|
|
#include "set.h"
|
|
|
|
#include "unit-name.h"
|
2014-07-07 21:40:00 +02:00
|
|
|
|
2014-07-01 00:41:17 +02:00
|
|
|
int drop_in_file(const char *dir, const char *unit, unsigned level,
|
2014-06-27 18:12:07 +02:00
|
|
|
const char *name, char **_p, char **_q);
|
|
|
|
|
2014-07-01 00:41:17 +02:00
|
|
|
int write_drop_in(const char *dir, const char *unit, unsigned level,
|
2014-06-27 18:12:07 +02:00
|
|
|
const char *name, const char *data);
|
|
|
|
|
2014-07-01 00:41:17 +02:00
|
|
|
int write_drop_in_format(const char *dir, const char *unit, unsigned level,
|
2014-07-07 21:40:00 +02:00
|
|
|
const char *name, const char *format, ...) _printf_(5, 6);
|
2014-12-15 05:12:40 +01:00
|
|
|
|
|
|
|
int unit_file_find_dropin_paths(
|
2017-02-02 18:17:20 +01:00
|
|
|
const char *original_root,
|
2014-12-15 05:12:40 +01:00
|
|
|
char **lookup_path,
|
|
|
|
Set *unit_path_cache,
|
2017-02-05 02:50:44 +01:00
|
|
|
const char *dir_suffix,
|
|
|
|
const char *file_suffix,
|
2020-05-27 15:49:17 +02:00
|
|
|
const char *name,
|
|
|
|
const Set *aliases,
|
2014-12-15 05:12:40 +01:00
|
|
|
char ***paths);
|