From 179cdf36868b8702b3bc7a78201f6d70142a6a6d Mon Sep 17 00:00:00 2001 From: Dan Winship Date: Tue, 28 Oct 2003 13:32:55 +0000 Subject: New; tell each query about a created/modified/removed object. * pcs/cal-backend.c (cal_backend_notify_object_created, cal_backend_notify_object_modified, cal_backend_notify_object_removed): New; tell each query about a created/modified/removed object. * pcs/cal.c (cal_notify_object_created): Use cal_backend_notify_object_created. (cal_notify_object_modified, cal_notify_object_removed): Likewise for modified/removed (cal_notify_objects_received): we need both the before and after forms for the modified objects so they can be resolved as adds/modifies/removes per-query. But the caller can just call the cal_backend_* routines for each object anyway, so just remove the created/modified/removed lists. * pcs/cal-backend-sync.c (cal_backend_sync_receive_objects): Remove created/modified/removed list arguments. (_cal_backend_receive_objects): Likewise. * pcs/cal-backend-file.c (cal_backend_file_receive_objects): Remove created/modified/removed list arguments. Replace the one use of *removed with a call to cal_backend_notify_object_removed. svn path=/trunk/; revision=23102 --- calendar/pcs/cal-backend-sync.h | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'calendar/pcs/cal-backend-sync.h') diff --git a/calendar/pcs/cal-backend-sync.h b/calendar/pcs/cal-backend-sync.h index 3e5ac7c73c..2953ac2afa 100644 --- a/calendar/pcs/cal-backend-sync.h +++ b/calendar/pcs/cal-backend-sync.h @@ -48,7 +48,7 @@ struct _CalBackendSyncClass { CalBackendSyncStatus (*discard_alarm_sync) (CalBackendSync *backend, Cal *cal, const char *uid, const char *auid); - CalBackendSyncStatus (*receive_objects_sync) (CalBackendSync *backend, Cal *cal, const char *calobj, GList **created, GList **modified, GList **removed); + CalBackendSyncStatus (*receive_objects_sync) (CalBackendSync *backend, Cal *cal, const char *calobj); CalBackendSyncStatus (*send_objects_sync) (CalBackendSync *backend, Cal *cal, const char *calobj); CalBackendSyncStatus (*get_default_object_sync) (CalBackendSync *backend, Cal *cal, char **object); @@ -112,10 +112,7 @@ CalBackendSyncStatus cal_backend_sync_discard_alarm (CalBackendSync *backend, Ca CalBackendSyncStatus cal_backend_sync_receive_objects (CalBackendSync *backend, Cal *cal, - const char *calobj, - GList **created, - GList **modified, - GList **removed); + const char *calobj); CalBackendSyncStatus cal_backend_sync_send_objects (CalBackendSync *backend, Cal *cal, const char *calobj); -- cgit v1.2.3