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.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'calendar/pcs/cal.h') diff --git a/calendar/pcs/cal.h b/calendar/pcs/cal.h index 52d8589ab2..f3d35f1f5f 100644 --- a/calendar/pcs/cal.h +++ b/calendar/pcs/cal.h @@ -81,8 +81,7 @@ void cal_notify_object_removed (Cal *cal, GNOME_Evolution_Calendar_CallStatus st const char *uid, const char *object); void cal_notify_alarm_discarded (Cal *cal, GNOME_Evolution_Calendar_CallStatus status); -void cal_notify_objects_received (Cal *cal, GNOME_Evolution_Calendar_CallStatus status, - GList *created, GList *modified, GList *removed); +void cal_notify_objects_received (Cal *cal, GNOME_Evolution_Calendar_CallStatus status); void cal_notify_objects_sent (Cal *cal, GNOME_Evolution_Calendar_CallStatus status); void cal_notify_default_object (Cal *cal, GNOME_Evolution_Calendar_CallStatus status, char *object); -- cgit v1.2.3