summaryrefslogtreecommitdiff
path: root/src/systemd
diff options
context:
space:
mode:
authorDavid Herrmann <dh.herrmann@gmail.com>2015-09-25 19:05:23 +0200
committerDavid Herrmann <dh.herrmann@gmail.com>2015-09-26 16:57:23 +0200
commitdfb815c36df6e5f2089672b1d986d38b44c7ad17 (patch)
tree37e401057e3bca4174662ea82a7f99d0effb340d /src/systemd
parent2e396de8b2317fdd1cb2f5eb1df8dffd13bf1e80 (diff)
sd-bus: add sd_bus_path_{encode,decode}_many()
This introduces two new helpers alongside sd_bus_path_{encode,decode}(), which work similarly to their counterparts, but accept a format-string as input. This allows encoding and decoding multiple labels of a format string at the same time.
Diffstat (limited to 'src/systemd')
-rw-r--r--src/systemd/sd-bus.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/systemd/sd-bus.h b/src/systemd/sd-bus.h
index 0883203ae7..43cf247cdf 100644
--- a/src/systemd/sd-bus.h
+++ b/src/systemd/sd-bus.h
@@ -420,7 +420,9 @@ int sd_bus_error_add_map(const sd_bus_error_map *map);
/* Label escaping */
int sd_bus_path_encode(const char *prefix, const char *external_id, char **ret_path);
+int sd_bus_path_encode_many(char **out, const char *path_template, ...);
int sd_bus_path_decode(const char *path, const char *prefix, char **ret_external_id);
+int sd_bus_path_decode_many(const char *path, const char *path_template, ...);
/* Tracking peers */