diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2017-12-09 19:23:26 +0100 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2017-12-15 16:47:11 +0100 |
commit | fb883e759d3c35a9085b1ab25d6176c2979d29d6 (patch) | |
tree | 786470ac24c1dd19c02410fce4eff0bdbc9af802 /src/shared/generator.h | |
parent | mount: add option to specify uid= and gid= (diff) | |
download | systemd-fb883e759d3c35a9085b1ab25d6176c2979d29d6.tar.xz systemd-fb883e759d3c35a9085b1ab25d6176c2979d29d6.zip |
generator: add helper function for writing unit files
It doesn't save too much, but it's a common pattern so I think it's worth
to factor this out.
Diffstat (limited to 'src/shared/generator.h')
-rw-r--r-- | src/shared/generator.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/shared/generator.h b/src/shared/generator.h index 32d1ad021c..e1c636a218 100644 --- a/src/shared/generator.h +++ b/src/shared/generator.h @@ -22,6 +22,12 @@ #include <stdio.h> +int generator_open_unit_file( + const char *dest, + const char *source, + const char *name, + FILE **file); + int generator_add_symlink(const char *root, const char *dst, const char *dep_type, const char *src); int generator_write_fsck_deps( |