Commit a0ff80d8 a0ff80d8518e652fcfb47310e9cce738965906ab by Sam Roberts

New api functions for parsing.

1 parent 6a39d6e3
...@@ -38,6 +38,7 @@ typedef struct _url * url_t; ...@@ -38,6 +38,7 @@ typedef struct _url * url_t;
38 38
39 extern int url_create __P ((url_t *, const char *name)); 39 extern int url_create __P ((url_t *, const char *name));
40 extern void url_destroy __P ((url_t *)); 40 extern void url_destroy __P ((url_t *));
41 extern int url_parse __P ((url_t));
41 42
42 extern int url_get_scheme __P ((const url_t, char *, size_t, size_t *)); 43 extern int url_get_scheme __P ((const url_t, char *, size_t, size_t *));
43 extern int url_get_user __P ((const url_t, char *, size_t, size_t *)); 44 extern int url_get_user __P ((const url_t, char *, size_t, size_t *));
...@@ -55,6 +56,8 @@ extern int url_is_same_path __P ((url_t, url_t)); ...@@ -55,6 +56,8 @@ extern int url_is_same_path __P ((url_t, url_t));
55 extern int url_is_same_host __P ((url_t, url_t)); 56 extern int url_is_same_host __P ((url_t, url_t));
56 extern int url_is_same_port __P ((url_t, url_t)); 57 extern int url_is_same_port __P ((url_t, url_t));
57 58
59 extern char* url_decode __P ((const char *s));
60
58 #ifdef __cplusplus 61 #ifdef __cplusplus
59 } 62 }
60 #endif 63 #endif
......