From 638794cde08bb785410a92d293969949a1f5a846 Mon Sep 17 00:00:00 2001 From: Jeff King Date: Sun, 23 May 2010 05:17:55 -0400 Subject: make url-related functions reusable The is_url function and url percent-decoding functions were static, but are generally useful. Let's make them available to other parts of the code. Signed-off-by: Jeff King Signed-off-by: Junio C Hamano --- url.h | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 url.h (limited to 'url.h') diff --git a/url.h b/url.h new file mode 100644 index 000000000..15817f8f9 --- /dev/null +++ b/url.h @@ -0,0 +1,10 @@ +#ifndef URL_H +#define URL_H + +extern int is_url(const char *url); +extern int is_urlschemechar(int first_flag, int ch); +extern char *url_decode(const char *url); +extern char *url_decode_parameter_name(const char **query); +extern char *url_decode_parameter_value(const char **query); + +#endif /* URL_H */ -- cgit v1.2.1