aboutsummaryrefslogtreecommitdiffstats
path: root/camel/camel-service.c
diff options
context:
space:
mode:
authorDan Winship <danw@src.gnome.org>2000-03-28 00:59:46 +0800
committerDan Winship <danw@src.gnome.org>2000-03-28 00:59:46 +0800
commit07f3a40ef048c94ae5bca801095e7f2d60fdb598 (patch)
treed59b0f98fc4f3e0ee3bc9bb7f741eaeb5ef19c3e /camel/camel-service.c
parentf8c580e8fda4cb3e28b57172c1fe3197ce7f7bc7 (diff)
downloadgsoc2013-evolution-07f3a40ef048c94ae5bca801095e7f2d60fdb598.tar
gsoc2013-evolution-07f3a40ef048c94ae5bca801095e7f2d60fdb598.tar.gz
gsoc2013-evolution-07f3a40ef048c94ae5bca801095e7f2d60fdb598.tar.bz2
gsoc2013-evolution-07f3a40ef048c94ae5bca801095e7f2d60fdb598.tar.lz
gsoc2013-evolution-07f3a40ef048c94ae5bca801095e7f2d60fdb598.tar.xz
gsoc2013-evolution-07f3a40ef048c94ae5bca801095e7f2d60fdb598.tar.zst
gsoc2013-evolution-07f3a40ef048c94ae5bca801095e7f2d60fdb598.zip
new routine to free the data allocated by camel_service_query_auth_types.
* camel-service.c (camel_service_free_auth_types): new routine to free the data allocated by camel_service_query_auth_types. * providers/pop3/camel-pop3-store.c (free_auth_types): implement svn path=/trunk/; revision=2190
Diffstat (limited to 'camel/camel-service.c')
-rw-r--r--camel/camel-service.c27
1 files changed, 25 insertions, 2 deletions
diff --git a/camel/camel-service.c b/camel/camel-service.c
index 19683782c5..394a163ae0 100644
--- a/camel/camel-service.c
+++ b/camel/camel-service.c
@@ -39,6 +39,7 @@ static gboolean _connect_with_url (CamelService *service, Gurl *url,
static gboolean _disconnect(CamelService *service, CamelException *ex);
static gboolean _is_connected (CamelService *service);
static GList * _query_auth_types (CamelService *service);
+static void _free_auth_types (CamelService *service, GList *authtypes);
static void _finalize (GtkObject *object);
static gboolean _set_url (CamelService *service, Gurl *url,
CamelException *ex);
@@ -57,6 +58,7 @@ camel_service_class_init (CamelServiceClass *camel_service_class)
camel_service_class->disconnect = _disconnect;
camel_service_class->is_connected = _is_connected;
camel_service_class->query_auth_types = _query_auth_types;
+ camel_service_class->free_auth_types = _free_auth_types;
/* virtual method overload */
gtk_object_class->finalize = _finalize;
@@ -388,10 +390,31 @@ _query_auth_types (CamelService *service)
* and query what authentication mechanisms it supports.
*
* Return value: a list of CamelServiceAuthType records. The caller
- * must free the list when it is done.
+ * must free the list by calling camel_service_free_auth_types when
+ * it is done.
**/
GList *
camel_service_query_auth_types (CamelService *service)
{
- return CSERV_CLASS(service)->query_auth_types(service);
+ return CSERV_CLASS (service)->query_auth_types (service);
+}
+
+static void
+_free_auth_types (CamelService *service, GList *authtypes)
+{
+ ;
+}
+
+/**
+ * camel_service_free_auth_types: free a type list returned by
+ * camel_service_query_auth_types.
+ * @service: the service
+ * @authtypes: the list of authtypes
+ *
+ * This frees the data allocated by camel_service_query_auth_types.
+ **/
+void
+camel_service_free_auth_types (CamelService *service, GList *authtypes)
+{
+ CSERV_CLASS (service)->free_auth_types (service, authtypes);
}