]> git.ipfire.org Git - thirdparty/systemd.git/blob - src/shared/generator.h
pkgconfig: define variables relative to ${prefix}/${rootprefix}/${sysconfdir}
[thirdparty/systemd.git] / src / shared / generator.h
1 /* SPDX-License-Identifier: LGPL-2.1+ */
2 #pragma once
3
4 #include <stdio.h>
5
6 int generator_open_unit_file(
7 const char *dest,
8 const char *source,
9 const char *name,
10 FILE **file);
11
12 int generator_add_symlink(const char *root, const char *dst, const char *dep_type, const char *src);
13
14 int generator_write_fsck_deps(
15 FILE *f,
16 const char *dir,
17 const char *what,
18 const char *where,
19 const char *type);
20
21 int generator_write_timeouts(
22 const char *dir,
23 const char *what,
24 const char *where,
25 const char *opts,
26 char **filtered);
27
28 int generator_write_device_deps(
29 const char *dir,
30 const char *what,
31 const char *where,
32 const char *opts);
33
34 int generator_write_initrd_root_device_deps(
35 const char *dir,
36 const char *what);
37
38 int generator_hook_up_mkswap(
39 const char *dir,
40 const char *what);
41 int generator_hook_up_mkfs(
42 const char *dir,
43 const char *what,
44 const char *where,
45 const char *type);
46 int generator_hook_up_growfs(
47 const char *dir,
48 const char *where,
49 const char *target);