From d9a54dc81723f83a21e24aa362a7a356d266e942 Mon Sep 17 00:00:00 2001 From: Jeremy Kerr Date: Thu, 2 May 2013 17:46:56 +0800 Subject: 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 --- lib/url/url.h | 1 + 1 file changed, 1 insertion(+) (limited to 'lib/url/url.h') 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); -- cgit v1.2.1