about summary refs log tree commit diff
path: root/shared/systemd/src/basic/escape.h
diff options
context:
space:
mode:
authorMichael Biebl <biebl@debian.org>2019-07-31 10:52:41 +0200
committerMichael Biebl <biebl@debian.org>2019-07-31 10:52:41 +0200
commit3a99ba5fd066fe42bd5461360a7411766496619c (patch)
treeb43863fbe867d7b0f9f9032fd40664c521c88fcb /shared/systemd/src/basic/escape.h
parent13cfe714153013158bdf3e74ab58ab713a04223c (diff)
parent2e5fa45ddfbb5cffa1e78221f1cea706e2f298af (diff)
Update upstream source from tag 'upstream/1.19.90'
Update to upstream version '1.19.90'
with Debian dir 6d1a5b9902866beee1365904d425141b5d4c944c
Diffstat (limited to 'shared/systemd/src/basic/escape.h')
-rw-r--r--shared/systemd/src/basic/escape.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/shared/systemd/src/basic/escape.h b/shared/systemd/src/basic/escape.h
index 51562099..b26054c5 100644
--- a/shared/systemd/src/basic/escape.h
+++ b/shared/systemd/src/basic/escape.h
@@ -46,8 +46,12 @@ int cunescape_length(const char *s, size_t length, UnescapeFlags flags, char **r
 int cunescape_length_with_prefix(const char *s, size_t length, const char *prefix, UnescapeFlags flags, char **ret);
 int cunescape_one(const char *p, size_t length, char32_t *ret, bool *eight_bit);
 
-char *xescape(const char *s, const char *bad);
+char *xescape_full(const char *s, const char *bad, size_t console_width, bool eight_bits);
+static inline char *xescape(const char *s, const char *bad) {
+        return xescape_full(s, bad, SIZE_MAX, false);
+}
 char *octescape(const char *s, size_t len);
+char *escape_non_printable_full(const char *str, size_t console_width, bool eight_bit);
 
 char *shell_escape(const char *s, const char *bad);
 char* shell_maybe_quote(const char *s, EscapeStyle style);