aboutsummaryrefslogtreecommitdiffstats
path: root/camel
diff options
context:
space:
mode:
Diffstat (limited to 'camel')
-rw-r--r--camel/ChangeLog2
-rw-r--r--camel/camel-url.c6
-rw-r--r--camel/camel-url.h2
3 files changed, 10 insertions, 0 deletions
diff --git a/camel/ChangeLog b/camel/ChangeLog
index 67fa005e15..2a7c8b4347 100644
--- a/camel/ChangeLog
+++ b/camel/ChangeLog
@@ -1,5 +1,7 @@
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.
diff --git a/camel/camel-url.c b/camel/camel-url.c
index bba935b7b9..2777a3f32a 100644
--- a/camel/camel-url.c
+++ b/camel/camel-url.c
@@ -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:
diff --git a/camel/camel-url.h b/camel/camel-url.h
index 0146b70a2d..85464a2fd0 100644
--- a/camel/camel-url.h
+++ b/camel/camel-url.h
@@ -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);