From 79148a335159d239c1e1271fe71839e43bfe60b7 Mon Sep 17 00:00:00 2001 From: Rodrigo Moya Date: Mon, 12 Jan 2004 18:09:11 +0000 Subject: [PATCH] new functions. 2004-01-12 Rodrigo Moya * backends/groupwise/e-gw-connection.[ch] (e_gw_connection_get_user_name, e_gw_connection_get_user_uuid): new functions. --- calendar/ChangeLog | 6 ++++++ calendar/backends/groupwise/e-gw-connection.c | 19 +++++++++++++++++-- calendar/backends/groupwise/e-gw-connection.h | 2 ++ servers/groupwise/e-gw-connection.c | 19 +++++++++++++++++-- servers/groupwise/e-gw-connection.h | 2 ++ 5 files changed, 44 insertions(+), 4 deletions(-) diff --git a/calendar/ChangeLog b/calendar/ChangeLog index 4801888..24095a2 100644 --- a/calendar/ChangeLog +++ b/calendar/ChangeLog @@ -1,5 +1,11 @@ 2004-01-12 Rodrigo Moya + * backends/groupwise/e-gw-connection.[ch] + (e_gw_connection_get_user_name, e_gw_connection_get_user_uuid): new + functions. + +2004-01-12 Rodrigo Moya + * backends/http/e-cal-backend-http.c (uri_to_cache_dir): fixed leak. 2004-01-10 Rodrigo Moya diff --git a/calendar/backends/groupwise/e-gw-connection.c b/calendar/backends/groupwise/e-gw-connection.c index b748ac7..79bfaa7 100644 --- a/calendar/backends/groupwise/e-gw-connection.c +++ b/calendar/backends/groupwise/e-gw-connection.c @@ -566,12 +566,27 @@ e_gw_connection_get_items (EGwConnection *cnc, const char * filter, GSList **lis return E_GW_CONNECTION_STATUS_OK; } +const char * +e_gw_connection_get_user_name (EGwConnection *cnc) +{ + g_return_val_if_fail (E_IS_GW_CONNECTION (cnc), NULL); + + return (const char *) cnc->priv->user_name; +} + const char* e_gw_connection_get_user_email (EGwConnection *cnc) { - g_return_val_if_fail (E_IS_GW_CONNECTION (cnc), NULL); + g_return_val_if_fail (E_IS_GW_CONNECTION (cnc), NULL); - return (const char*) cnc->priv->user_email; + return (const char*) cnc->priv->user_email; } +const char * +e_gw_connection_get_user_uuid (EGwConnection *cnc) +{ + g_return_val_if_fail (E_IS_GW_CONNECTION (cnc), NULL); + + return (const char *) cnc->priv->user_uuid; +} diff --git a/calendar/backends/groupwise/e-gw-connection.h b/calendar/backends/groupwise/e-gw-connection.h index 508b2cb..2294826 100644 --- a/calendar/backends/groupwise/e-gw-connection.h +++ b/calendar/backends/groupwise/e-gw-connection.h @@ -64,7 +64,9 @@ SoupSoapResponse *e_gw_connection_send_message (EGwConnection *cnc, SoupSoapMe EGwConnectionStatus e_gw_connection_logout (EGwConnection *cnc); EGwConnectionStatus e_gw_connection_get_items (EGwConnection *cnc, const char *filter, GSList **list); +const char *e_gw_connection_get_user_name (EGwConnection *cnc); const char *e_gw_connection_get_user_email (EGwConnection *cnc); +const char *e_gw_connection_get_user_uuid (EGwConnection *cnc); G_END_DECLS diff --git a/servers/groupwise/e-gw-connection.c b/servers/groupwise/e-gw-connection.c index b748ac7..79bfaa7 100644 --- a/servers/groupwise/e-gw-connection.c +++ b/servers/groupwise/e-gw-connection.c @@ -566,12 +566,27 @@ e_gw_connection_get_items (EGwConnection *cnc, const char * filter, GSList **lis return E_GW_CONNECTION_STATUS_OK; } +const char * +e_gw_connection_get_user_name (EGwConnection *cnc) +{ + g_return_val_if_fail (E_IS_GW_CONNECTION (cnc), NULL); + + return (const char *) cnc->priv->user_name; +} + const char* e_gw_connection_get_user_email (EGwConnection *cnc) { - g_return_val_if_fail (E_IS_GW_CONNECTION (cnc), NULL); + g_return_val_if_fail (E_IS_GW_CONNECTION (cnc), NULL); - return (const char*) cnc->priv->user_email; + return (const char*) cnc->priv->user_email; } +const char * +e_gw_connection_get_user_uuid (EGwConnection *cnc) +{ + g_return_val_if_fail (E_IS_GW_CONNECTION (cnc), NULL); + + return (const char *) cnc->priv->user_uuid; +} diff --git a/servers/groupwise/e-gw-connection.h b/servers/groupwise/e-gw-connection.h index 508b2cb..2294826 100644 --- a/servers/groupwise/e-gw-connection.h +++ b/servers/groupwise/e-gw-connection.h @@ -64,7 +64,9 @@ SoupSoapResponse *e_gw_connection_send_message (EGwConnection *cnc, SoupSoapMe EGwConnectionStatus e_gw_connection_logout (EGwConnection *cnc); EGwConnectionStatus e_gw_connection_get_items (EGwConnection *cnc, const char *filter, GSList **list); +const char *e_gw_connection_get_user_name (EGwConnection *cnc); const char *e_gw_connection_get_user_email (EGwConnection *cnc); +const char *e_gw_connection_get_user_uuid (EGwConnection *cnc); G_END_DECLS -- 2.7.4