Commit c92c8b1f authored by Dan Winship's avatar Dan Winship

Add missing accessor.

	* camel-url.c (camel_url_get_param): Add missing accessor.

svn path=/trunk/; revision=8943
parent 3eb45d09
2001-03-26 Dan Winship <danw@ximian.com>
* camel-url.c (camel_url_get_param): Add missing accessor.
* camel-session.c (camel_session_get_provider): New. Return
the provider for a URL.
......
......@@ -425,6 +425,12 @@ camel_url_set_param (CamelURL *url, const char *name, const char *value)
g_datalist_set_data (&url->params, name, value ? g_strdup (value) : NULL);
}
const char *
camel_url_get_param (CamelURL *url, const char *name)
{
return g_datalist_get_data (&url->params, name);
}
/**
* camel_url_encode:
......
......@@ -69,6 +69,8 @@ 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);
const char *camel_url_get_param (CamelURL *url, const char *name);
/* for putting url's into hash tables */
guint camel_url_hash (const void *v);
int camel_url_equal(const void *v, const void *v2);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment