]> git.ipfire.org Git - thirdparty/systemd.git/blob - src/shared/generator.h
Merge pull request #8700 from keszybz/hibernation
[thirdparty/systemd.git] / src / shared / generator.h
1 /* SPDX-License-Identifier: LGPL-2.1+ */
2 #pragma once
3
4 /***
5 This file is part of systemd.
6
7 Copyright 2014 Lennart Poettering
8 ***/
9
10 #include <stdio.h>
11
12 int generator_open_unit_file(
13 const char *dest,
14 const char *source,
15 const char *name,
16 FILE **file);
17
18 int generator_add_symlink(const char *root, const char *dst, const char *dep_type, const char *src);
19
20 int generator_write_fsck_deps(
21 FILE *f,
22 const char *dir,
23 const char *what,
24 const char *where,
25 const char *type);
26
27 int generator_write_timeouts(
28 const char *dir,
29 const char *what,
30 const char *where,
31 const char *opts,
32 char **filtered);
33
34 int generator_write_device_deps(
35 const char *dir,
36 const char *what,
37 const char *where,
38 const char *opts);
39
40 int generator_write_initrd_root_device_deps(
41 const char *dir,
42 const char *what);
43
44 int generator_hook_up_mkswap(
45 const char *dir,
46 const char *what);
47 int generator_hook_up_mkfs(
48 const char *dir,
49 const char *what,
50 const char *where,
51 const char *type);
52 int generator_hook_up_growfs(
53 const char *dir,
54 const char *where,
55 const char *target);