[uri] Add uri_encode() and uri_decode() functions for URI character encoding

This commit is contained in:
Michael Brown
2008-09-24 07:21:47 +01:00
parent 9d44a06188
commit b350b10b35
2 changed files with 80 additions and 0 deletions

View File

@@ -135,5 +135,7 @@ extern char * resolve_path ( const char *base_path,
extern struct uri * resolve_uri ( struct uri *base_uri,
struct uri *relative_uri );
extern void churi ( struct uri *uri );
extern size_t uri_encode ( const char *raw_string, char *buf, size_t len );
extern size_t uri_decode ( const char *encoded_string, char *buf, size_t len );
#endif /* _GPXE_URI_H */