aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/common
diff options
context:
space:
mode:
authorGustavo Noronha Silva <gustavo.noronha@collabora.co.uk>2010-01-23 04:14:32 +0800
committerGustavo Noronha Silva <gustavo.noronha@collabora.co.uk>2010-01-27 21:23:36 +0800
commitd635b839f8d22746f44067464dc3c645aeeb8591 (patch)
tree066ae5e4f73ee2ff96d1ca5d6f3885213d1c3d44 /calendar/common
parent0e06ff46d0cc53ae2108219490c0bb9c7106d33a (diff)
downloadgsoc2013-evolution-d635b839f8d22746f44067464dc3c645aeeb8591.tar
gsoc2013-evolution-d635b839f8d22746f44067464dc3c645aeeb8591.tar.gz
gsoc2013-evolution-d635b839f8d22746f44067464dc3c645aeeb8591.tar.bz2
gsoc2013-evolution-d635b839f8d22746f44067464dc3c645aeeb8591.tar.lz
gsoc2013-evolution-d635b839f8d22746f44067464dc3c645aeeb8591.tar.xz
gsoc2013-evolution-d635b839f8d22746f44067464dc3c645aeeb8591.tar.zst
gsoc2013-evolution-d635b839f8d22746f44067464dc3c645aeeb8591.zip
Make authentication functionality available
This involves renaming the calendar auth-related functions to have a prefix, and shipping the headers. Part of https://bugzilla.gnome.org/show_bug.cgi?id=608175
Diffstat (limited to 'calendar/common')
-rw-r--r--calendar/common/Makefile.am4
-rw-r--r--calendar/common/authentication.c10
-rw-r--r--calendar/common/authentication.h8
3 files changed, 13 insertions, 9 deletions
diff --git a/calendar/common/Makefile.am b/calendar/common/Makefile.am
index 342a9b6df5..5a6c18f417 100644
--- a/calendar/common/Makefile.am
+++ b/calendar/common/Makefile.am
@@ -1,5 +1,9 @@
noinst_LTLIBRARIES = libevolution-calendarprivate.la
+ecalendarcommonincludedir = $(privincludedir)/calendar/common
+ecalendarcommoninclude_HEADERS = \
+ authentication.h
+
libevolution_calendarprivate_la_CPPFLAGS = \
$(AM_CPPFLAGS) \
-DG_LOG_DOMAIN=\"calendar-gui\" \
diff --git a/calendar/common/authentication.c b/calendar/common/authentication.c
index 7b0b2e7972..baacc1ead4 100644
--- a/calendar/common/authentication.c
+++ b/calendar/common/authentication.c
@@ -73,7 +73,7 @@ build_pass_key (ECal *ecal)
}
void
-auth_cal_forget_password (ECal *ecal)
+e_auth_cal_forget_password (ECal *ecal)
{
ESource *source = NULL;
const gchar *auth_domain = NULL, *component_name = NULL, *auth_type = NULL;
@@ -95,7 +95,7 @@ auth_cal_forget_password (ECal *ecal)
}
ECal *
-auth_new_cal_from_default (ECalSourceType type)
+e_auth_new_cal_from_default (ECalSourceType type)
{
ECal *ecal = NULL;
@@ -106,7 +106,7 @@ auth_new_cal_from_default (ECalSourceType type)
}
ECal *
-auth_new_cal_from_source (ESource *source, ECalSourceType type)
+e_auth_new_cal_from_source (ESource *source, ECalSourceType type)
{
ECal *cal;
@@ -118,7 +118,7 @@ auth_new_cal_from_source (ESource *source, ECalSourceType type)
}
ECal *
-auth_new_cal_from_uri (const gchar *uri, ECalSourceType type)
+e_auth_new_cal_from_uri (const gchar *uri, ECalSourceType type)
{
ESourceGroup *group = NULL;
ESource *source = NULL;
@@ -172,7 +172,7 @@ auth_new_cal_from_uri (const gchar *uri, ECalSourceType type)
}
}
- cal = auth_new_cal_from_source (source, type);
+ cal = e_auth_new_cal_from_source (source, type);
g_object_unref (source);
if (group)
diff --git a/calendar/common/authentication.h b/calendar/common/authentication.h
index 7d9d7f5fa7..e4e0599878 100644
--- a/calendar/common/authentication.h
+++ b/calendar/common/authentication.h
@@ -27,9 +27,9 @@
#include <libedataserver/e-source.h>
#include <libecal/e-cal.h>
-ECal *auth_new_cal_from_default (ECalSourceType type);
-ECal *auth_new_cal_from_source (ESource *source, ECalSourceType type);
-ECal *auth_new_cal_from_uri (const gchar *uri, ECalSourceType type);
-void auth_cal_forget_password (ECal *ecal);
+ECal *e_auth_new_cal_from_default (ECalSourceType type);
+ECal *e_auth_new_cal_from_source (ESource *source, ECalSourceType type);
+ECal *e_auth_new_cal_from_uri (const gchar *uri, ECalSourceType type);
+void e_auth_cal_forget_password (ECal *ecal);
#endif