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>
This commit is contained in:
Jeff King
2010-05-23 05:17:55 -04:00
committed by Junio C Hamano
parent 770c54170a
commit 638794cde0
5 changed files with 134 additions and 105 deletions

10
url.h Normal file
View File

@@ -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 */