sd_bus_label_escape, sd_bus_label_unescape — Escape D-Bus object path special characters
|const char *s|
|const char *f|
sd_bus_label_escape() takes a
NUL-terminated string as a argument. It will
replace all characters which are invalid in a D-Bus object path by
_" and a hexadecimal number. As a special case,
the empty string will be replaced by a lone "
sd_bus_label_unescape() can be used to
reverse this process.
On success, a new
will be returned. It must be
by the caller. If a memory allocation failure occurs,
NULL will be returned.
sd_bus_label_unescape() are available as a
shared library, which can be compiled and linked to with the