summaryrefslogtreecommitdiff
path: root/common/path.h
diff options
context:
space:
mode:
authorDaiki Ueno <dueno@redhat.com>2017-01-25 15:54:40 +0100
committerDaiki Ueno <ueno@gnu.org>2017-02-16 16:56:40 +0100
commit3bab48000c4e61104b30ac379806cad3e1376ea6 (patch)
treed307f95c4583079949421791185667e6846d941e /common/path.h
parent5442b1cfa13da9307cc38a8fd289a67a05fe26ad (diff)
common: Add path encoding functions
This adds p11_path_{encode,decode}(), following the escaping rule described in: https://dbus.freedesktop.org/doc/dbus-specification.html#addresses Although they are merely a wrapper around p11_url_{decode,encode}(), having dedicated functions hides the implementation details.
Diffstat (limited to 'common/path.h')
-rw-r--r--common/path.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/common/path.h b/common/path.h
index 0b19a5d..243c14f 100644
--- a/common/path.h
+++ b/common/path.h
@@ -66,4 +66,8 @@ bool p11_path_prefix (const char *string,
void p11_path_canon (char *name);
+char * p11_path_encode (const char *path);
+
+char * p11_path_decode (const char *path);
+
#endif /* P11_PATH_H__ */