summaryrefslogtreecommitdiff
path: root/url.h
diff options
context:
space:
mode:
authorJeff King <peff@peff.net>2010-05-23 05:17:55 -0400
committerJunio C Hamano <gitster@pobox.com>2010-05-24 16:48:32 -0700
commit638794cde08bb785410a92d293969949a1f5a846 (patch)
tree0c17c4e6be9ee58704a1b6a981fef7fbf4e7d17b /url.h
parent770c54170a43ffb3810088a85f25c59c0cbf7b38 (diff)
downloadgit-638794cde08bb785410a92d293969949a1f5a846.tar.gz
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 <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'url.h')
-rw-r--r--url.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/url.h b/url.h
new file mode 100644
index 0000000000..15817f8f93
--- /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 */