[evolution-data-server/camel-gobject] Return a boolean from camel_session_forget_password().
- From: Matthew Barnes <mbarnes src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [evolution-data-server/camel-gobject] Return a boolean from camel_session_forget_password().
- Date: Sun, 29 Nov 2009 18:38:39 +0000 (UTC)
commit 4993dead67c781ba3b107931800dfdbe870551fc
Author: Matthew Barnes <mbarnes redhat com>
Date: Sun Nov 29 10:22:22 2009 -0500
Return a boolean from camel_session_forget_password().
camel/camel-session.c | 6 ++++--
camel/camel-session.h | 4 ++--
docs/reference/camel/tmpl/camel-session.sgml | 1 +
3 files changed, 7 insertions(+), 4 deletions(-)
---
diff --git a/camel/camel-session.c b/camel/camel-session.c
index 35b1d71..226dd0a 100644
--- a/camel/camel-session.c
+++ b/camel/camel-session.c
@@ -542,8 +542,10 @@ camel_session_get_password (CamelSession *session,
*
* @service and @item identify the rejected authentication information,
* as with #camel_session_get_password.
+ *
+ * Returns: %TRUE on success, %FALSE on failure
**/
-void
+gboolean
camel_session_forget_password (CamelSession *session,
CamelService *service,
const gchar *domain,
@@ -558,7 +560,7 @@ camel_session_forget_password (CamelSession *session,
class = CAMEL_SESSION_GET_CLASS (session);
g_return_if_fail (class->forget_password);
- class->forget_password (session, service, domain, item, error);
+ return class->forget_password (session, service, domain, item, error);
}
/**
diff --git a/camel/camel-session.h b/camel/camel-session.h
index 90dc412..df9d15a 100644
--- a/camel/camel-session.h
+++ b/camel/camel-session.h
@@ -109,7 +109,7 @@ struct _CamelSessionClass {
const gchar *item,
guint32 flags,
GError **error);
- void (*forget_password) (CamelSession *session,
+ gboolean (*forget_password) (CamelSession *session,
CamelService *service,
const gchar *domain,
const gchar *item,
@@ -179,7 +179,7 @@ gchar * camel_session_get_password (CamelSession *session,
const gchar *item,
guint32 flags,
GError **error);
-void camel_session_forget_password (CamelSession *session,
+gboolean camel_session_forget_password (CamelSession *session,
CamelService *service,
const gchar *domain,
const gchar *item,
diff --git a/docs/reference/camel/tmpl/camel-session.sgml b/docs/reference/camel/tmpl/camel-session.sgml
index b68e809..f4d7a2b 100644
--- a/docs/reference/camel/tmpl/camel-session.sgml
+++ b/docs/reference/camel/tmpl/camel-session.sgml
@@ -151,6 +151,7 @@ CamelSession
@domain:
@item:
@error:
+ Returns:
<!-- ##### FUNCTION camel_session_alert_user ##### -->
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]