From 0aad536ca17d31a2e7b891df46741ab28bc16653 Mon Sep 17 00:00:00 2001 From: Georges Basile Stavracas Neto Date: Thu, 30 Apr 2015 16:55:06 -0300 Subject: [PATCH] application: add method to retrieve the GoaClient --- src/gcal-application.c | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/src/gcal-application.c b/src/gcal-application.c index 01e066b3..f2c6f595 100644 --- a/src/gcal-application.c +++ b/src/gcal-application.c @@ -610,3 +610,20 @@ gcal_application_set_initial_date (GcalApplication *application, g_free (priv->initial_date); priv->initial_date = gcal_dup_icaltime (date); } + +/** + * gcal_application_get_client: + * @application: a #GcalApplication + * + * Retrieves the internal #GoaClient from @application. It + * should not be unreferenced after usage. + * + * Returns: (transfer none): the #GoaClient of @application + */ +GoaClient* +gcal_application_get_client (GcalApplication *application) +{ + g_return_val_if_fail (GCAL_IS_APPLICATION (application), NULL); + + return application->priv->client; +}