diff options
author | Jeremy Kerr <jk@ozlabs.org> | 2013-05-02 17:46:56 +0800 |
---|---|---|
committer | Jeremy Kerr <jk@ozlabs.org> | 2013-05-15 14:50:45 +0800 |
commit | d9a54dc81723f83a21e24aa362a7a356d266e942 (patch) | |
tree | b6c2130bd40d83d5d5eec22c18e7878d081b72ed /lib/url/url.h | |
parent | 198c4e575e177ae5458238e7b474361506a6f302 (diff) | |
download | talos-petitboot-d9a54dc81723f83a21e24aa362a7a356d266e942.tar.gz talos-petitboot-d9a54dc81723f83a21e24aa362a7a356d266e942.zip |
lib/url: Add pb_url_to_string
Add a function to unparse a URL, to make comparisons in tests easy.
Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Diffstat (limited to 'lib/url/url.h')
-rw-r--r-- | lib/url/url.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/url/url.h b/lib/url/url.h index 40c1164..997cdcb 100644 --- a/lib/url/url.h +++ b/lib/url/url.h @@ -60,6 +60,7 @@ struct pb_url { struct pb_url *pb_url_parse(void *ctx, const char *url_str); struct pb_url *pb_url_join(void *ctx, const struct pb_url *url, const char *s); +char *pb_url_to_string(struct pb_url *url); const char *pb_url_scheme_name(enum pb_url_scheme scheme); |