diff options
author | Dan Winship <danw@src.gnome.org> | 2001-03-26 06:55:27 +0800 |
---|---|---|
committer | Dan Winship <danw@src.gnome.org> | 2001-03-26 06:55:27 +0800 |
commit | 182c699c3909ff7e052f05259bac368b72c464f3 (patch) | |
tree | eafe49670084a3dd4b78536098969579eae38129 /camel/camel-url.h | |
parent | bedb486193f38c72e20754a4d7bd28142689f1ae (diff) | |
download | gsoc2013-evolution-182c699c3909ff7e052f05259bac368b72c464f3.tar.gz gsoc2013-evolution-182c699c3909ff7e052f05259bac368b72c464f3.tar.zst gsoc2013-evolution-182c699c3909ff7e052f05259bac368b72c464f3.zip |
New URL parser with full RFC1808 relative URL support. Yum.
* camel-url.c (camel_url_new_with_base): New URL parser with full
RFC1808 relative URL support. Yum.
(camel_url_new): Wrapper around camel_url_new_with_base now.
Removed the CamelException since no one ever used it...
* tests/Makefile.am: add misc subdir
* tests/misc/url.c: relative URL test cases from RFC 1808
* camel-session.c (camel_session_get_service): Update
camel_url_new call.
svn path=/trunk/; revision=8933
Diffstat (limited to 'camel/camel-url.h')
-rw-r--r-- | camel/camel-url.h | 34 |
1 files changed, 22 insertions, 12 deletions
diff --git a/camel/camel-url.h b/camel/camel-url.h index 996c4b4e74..0ee8066137 100644 --- a/camel/camel-url.h +++ b/camel/camel-url.h @@ -37,16 +37,20 @@ extern "C" { #endif /* __cplusplus */ typedef struct { - char *protocol; - char *user; - char *authmech; - char *passwd; - char *host; - int port; - char *path; + char *protocol; + char *user; + char *authmech; + char *passwd; + char *host; + int port; + char *path; + GData *params; + char *query; + char *fragment; } CamelURL; -CamelURL *camel_url_new (const char *url_string, CamelException *ex); +CamelURL *camel_url_new_with_base (CamelURL *base, const char *url_string); +CamelURL *camel_url_new (const char *url_string); char *camel_url_to_string (CamelURL *url, gboolean show_password); void camel_url_free (CamelURL *url); @@ -54,10 +58,16 @@ char *camel_url_encode (char *part, gboolean escape_unsafe, char *escape_extra); void camel_url_decode (char *part); /* for editing url's */ -void camel_url_set_protocol(CamelURL *url, const char *); -void camel_url_set_host(CamelURL *url, const char *); -void camel_url_set_port(CamelURL *url, int port); -void camel_url_set_path(CamelURL *url, const char *); +void camel_url_set_protocol (CamelURL *url, const char *protocol); +void camel_url_set_user (CamelURL *url, const char *user); +void camel_url_set_authmech (CamelURL *url, const char *authmech); +void camel_url_set_passwd (CamelURL *url, const char *passwd); +void camel_url_set_host (CamelURL *url, const char *host); +void camel_url_set_port (CamelURL *url, int port); +void camel_url_set_path (CamelURL *url, const char *path); +void camel_url_set_param (CamelURL *url, const char *name, const char *value); +void camel_url_set_query (CamelURL *url, const char *query); +void camel_url_set_fragment (CamelURL *url, const char *fragment); /* for putting url's into hash tables */ guint camel_url_hash (const void *v); |