[evolution-kolab] ECalBackendKolab: fix for E-D-S API cleanup



commit 3de5f773017c9171bef72561815cab07eb4cc912
Author: Christian Hilberg <hilberg kernelconcepts de>
Date:   Mon Feb 13 16:47:58 2012 +0100

    ECalBackendKolab: fix for E-D-S API cleanup
    
    * ECalBackend(Sync) received an API cleanup,
      several functions now take ECalComponent
      arg instead of icalcomponent
    * fixed ECalBackendKolab API accordingly

 src/calendar/e-cal-backend-kolab.c |   20 ++++++++++----------
 1 files changed, 10 insertions(+), 10 deletions(-)
---
diff --git a/src/calendar/e-cal-backend-kolab.c b/src/calendar/e-cal-backend-kolab.c
index d7e36ea..96d7067 100644
--- a/src/calendar/e-cal-backend-kolab.c
+++ b/src/calendar/e-cal-backend-kolab.c
@@ -607,7 +607,7 @@ e_cal_backend_kolab_create_object (ECalBackendSync *backend,
                                    GCancellable *cancellable,
                                    const gchar *calobj,
                                    gchar **uid,
-                                   icalcomponent **new_component,
+                                   ECalComponent **new_component,
                                    GError **err)
 {
 	ECalBackendKolab *self = E_CAL_BACKEND_KOLAB (backend);
@@ -617,7 +617,7 @@ e_cal_backend_kolab_create_object (ECalBackendSync *backend,
 	(void)cancellable; /* FIXME */ /* cancellable may be NULL */
 	(void)calobj; /* FIXME */
 	(void)uid; /* FIXME */
-	(void)new_component; /* FIXME */ /* must be NULL? */
+	g_return_if_fail (new_component == NULL || *new_component == NULL);
 	g_return_if_fail (err == NULL || *err == NULL);
 
 	(void)self;
@@ -728,8 +728,8 @@ e_cal_backend_kolab_modify_object (ECalBackendSync *backend,
                                    GCancellable *cancellable,
                                    const gchar *calobj,
                                    CalObjModType mod,
-                                   icalcomponent **old_component,
-                                   icalcomponent **new_component,
+                                   ECalComponent **old_component,
+                                   ECalComponent **new_component,
                                    GError **err)
 {
 	ECalBackendKolab *self = E_CAL_BACKEND_KOLAB (backend);
@@ -739,8 +739,8 @@ e_cal_backend_kolab_modify_object (ECalBackendSync *backend,
 	(void)cancellable; /* FIXME */ /* cancellable may be NULL */
 	(void)calobj; /* FIXME */
 	(void)mod; /* FIXME */
-	(void)old_component; /* FIXME */ /* must not be NULL? */
-	(void)new_component; /* FIXME */ /* must be NULL? */
+	g_return_if_fail (old_component == NULL || *old_component == NULL); /* FIXME */
+	g_return_if_fail (new_component == NULL || *new_component == NULL); /* FIXME */
 	g_return_if_fail (err == NULL || *err == NULL);
 
 	(void)self;
@@ -920,8 +920,8 @@ e_cal_backend_kolab_remove_object (ECalBackendSync *backend,
                                    const gchar *uid,
                                    const gchar *rid,
                                    CalObjModType mod,
-                                   icalcomponent **old_component,
-                                   icalcomponent **new_component,
+                                   ECalComponent **old_component,
+                                   ECalComponent **new_component,
                                    GError **err)
 {
 	ECalBackendKolab *self = E_CAL_BACKEND_KOLAB (backend);
@@ -932,8 +932,8 @@ e_cal_backend_kolab_remove_object (ECalBackendSync *backend,
 	(void)uid; /* FIXME */
 	(void)rid; /* FIXME */ /* may be NULL? */
 	(void)mod; /* FIXME */
-	(void)old_component; /* FIXME */ /* must not be NULL? */
-	(void)new_component; /* FIXME */ /* must be NULL? */
+	g_return_if_fail (old_component == NULL || *old_component == NULL); /* FIXME */
+	g_return_if_fail (new_component == NULL || *new_component == NULL); /* FIXME */
 	g_return_if_fail (err == NULL || *err == NULL);
 
 	(void)self;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]