aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan Winship <danw@src.gnome.org>2001-03-26 22:05:44 +0800
committerDan Winship <danw@src.gnome.org>2001-03-26 22:05:44 +0800
commitc92c8b1fe42d8b4aa229b6be0172844a9a4a8bee (patch)
tree64bff21bb1192d00739a569a86bd922d22808724
parent3eb45d09d2546975d001bfc295f9a105be5a9921 (diff)
downloadgsoc2013-evolution-c92c8b1fe42d8b4aa229b6be0172844a9a4a8bee.tar
gsoc2013-evolution-c92c8b1fe42d8b4aa229b6be0172844a9a4a8bee.tar.gz
gsoc2013-evolution-c92c8b1fe42d8b4aa229b6be0172844a9a4a8bee.tar.bz2
gsoc2013-evolution-c92c8b1fe42d8b4aa229b6be0172844a9a4a8bee.tar.lz
gsoc2013-evolution-c92c8b1fe42d8b4aa229b6be0172844a9a4a8bee.tar.xz
gsoc2013-evolution-c92c8b1fe42d8b4aa229b6be0172844a9a4a8bee.tar.zst
gsoc2013-evolution-c92c8b1fe42d8b4aa229b6be0172844a9a4a8bee.zip
Add missing accessor.
* camel-url.c (camel_url_get_param): Add missing accessor. svn path=/trunk/; revision=8943
-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);