diff options
author | Michal Sekletar <msekleta@redhat.com> | 2022-03-15 19:02:05 +0100 |
---|---|---|
committer | Michal Sekletar <msekleta@redhat.com> | 2022-04-08 15:18:24 +0200 |
commit | 1d0727e76fd5e9a07cc9991ec9a10ea1d78a99c7 (patch) | |
tree | 210e5a04fccf5b7ececb91916d64502578d31cba /src/basic/unit-name.h | |
parent | Merge pull request #22803 from medhefgo/boot-cflags (diff) | |
download | systemd-1d0727e76fd5e9a07cc9991ec9a10ea1d78a99c7.tar.xz systemd-1d0727e76fd5e9a07cc9991ec9a10ea1d78a99c7.zip |
core: shorten long unit names that are based on paths and append path hash at the end
Fixes #18077
Diffstat (limited to 'src/basic/unit-name.h')
-rw-r--r-- | src/basic/unit-name.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/basic/unit-name.h b/src/basic/unit-name.h index b62b3e034e..eaa701e9f6 100644 --- a/src/basic/unit-name.h +++ b/src/basic/unit-name.h @@ -44,6 +44,9 @@ int unit_name_replace_instance(const char *f, const char *i, char **ret); int unit_name_template(const char *f, char **ret); +int unit_name_hash_long(const char *name, char **ret); +bool unit_name_is_hashed(const char *name); + int unit_name_from_path(const char *path, const char *suffix, char **ret); int unit_name_from_path_instance(const char *prefix, const char *path, const char *suffix, char **ret); int unit_name_to_path(const char *name, char **ret); |