diff options
author | Dan Winship <danw@src.gnome.org> | 2003-10-24 23:00:11 +0800 |
---|---|---|
committer | Dan Winship <danw@src.gnome.org> | 2003-10-24 23:00:11 +0800 |
commit | 56d094b8c063fa7edf5a91f8ca14afec59bdb12c (patch) | |
tree | 6e43299f718911f28b64bb7f09ba3d7cbcdb5851 /calendar/pcs/cal-backend-file.c | |
parent | 53f60e8802c75c9272cccc46f316f1fd47ef44b0 (diff) | |
download | gsoc2013-evolution-56d094b8c063fa7edf5a91f8ca14afec59bdb12c.tar gsoc2013-evolution-56d094b8c063fa7edf5a91f8ca14afec59bdb12c.tar.gz gsoc2013-evolution-56d094b8c063fa7edf5a91f8ca14afec59bdb12c.tar.bz2 gsoc2013-evolution-56d094b8c063fa7edf5a91f8ca14afec59bdb12c.tar.lz gsoc2013-evolution-56d094b8c063fa7edf5a91f8ca14afec59bdb12c.tar.xz gsoc2013-evolution-56d094b8c063fa7edf5a91f8ca14afec59bdb12c.tar.zst gsoc2013-evolution-56d094b8c063fa7edf5a91f8ca14afec59bdb12c.zip |
Remove type arg
* cal-client/cal-client.c (cal_client_get_changes): Remove type arg
* conduits/calendar/calendar-conduit.c (pre_sync, post_sync):
Update for that
* conduits/todo/todo-conduit.c (pre_sync, post_sync): Likewise
* idl/evolution-calendar.idl (getChanges): Remove type arg.
* pcs/cal.c (impl_Cal_getChanges): Likewise
* pcs/cal-backend.c (cal_backend_get_changes): Likewise
* pcs/cal-backend-sync.c (cal_backend_sync_get_changes): Likewise
* pcs/cal-backend-file.c (cal_backend_file_get_changes): Update
for that
svn path=/trunk/; revision=23059
Diffstat (limited to 'calendar/pcs/cal-backend-file.c')
-rw-r--r-- | calendar/pcs/cal-backend-file.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/calendar/pcs/cal-backend-file.c b/calendar/pcs/cal-backend-file.c index 11f611f9e5..d99b80a0b7 100644 --- a/calendar/pcs/cal-backend-file.c +++ b/calendar/pcs/cal-backend-file.c @@ -1236,7 +1236,7 @@ cal_backend_file_get_free_busy (CalBackendSync *backend, Cal *cal, GList *users, typedef struct { CalBackendFile *backend; - CalObjType type; + icalcomponent_kind kind; GList *deletes; EXmlHash *ehash; } CalBackendFileComputeChangesData; @@ -1250,7 +1250,7 @@ cal_backend_file_compute_changes_foreach_key (const char *key, gpointer data) CalComponent *comp; comp = cal_component_new (); - if (be_data->type == GNOME_Evolution_Calendar_TYPE_TODO) + if (be_data->kind == ICAL_VTODO_COMPONENT) cal_component_set_new_vtype (comp, CAL_COMPONENT_TODO); else cal_component_set_new_vtype (comp, CAL_COMPONENT_EVENT); @@ -1263,7 +1263,7 @@ cal_backend_file_compute_changes_foreach_key (const char *key, gpointer data) } static CalBackendSyncStatus -cal_backend_file_compute_changes (CalBackendFile *cbfile, CalObjType type, const char *change_id, +cal_backend_file_compute_changes (CalBackendFile *cbfile, const char *change_id, GList **adds, GList **modifies, GList **deletes) { CalBackendFilePrivate *priv; @@ -1308,7 +1308,7 @@ cal_backend_file_compute_changes (CalBackendFile *cbfile, CalObjType type, const /* Calculate deletions */ be_data.backend = cbfile; - be_data.type = type; + be_data.kind = cal_backend_get_kind (CAL_BACKEND (cbfile)); be_data.deletes = NULL; be_data.ehash = ehash; e_xmlhash_foreach_key (ehash, (EXmlHashFunc)cal_backend_file_compute_changes_foreach_key, &be_data); @@ -1323,7 +1323,7 @@ cal_backend_file_compute_changes (CalBackendFile *cbfile, CalObjType type, const /* Get_changes handler for the file backend */ static CalBackendSyncStatus -cal_backend_file_get_changes (CalBackendSync *backend, Cal *cal, CalObjType type, const char *change_id, +cal_backend_file_get_changes (CalBackendSync *backend, Cal *cal, const char *change_id, GList **adds, GList **modifies, GList **deletes) { CalBackendFile *cbfile; @@ -1335,7 +1335,7 @@ cal_backend_file_get_changes (CalBackendSync *backend, Cal *cal, CalObjType type g_return_val_if_fail (priv->icalcomp != NULL, GNOME_Evolution_Calendar_NoSuchCal); g_return_val_if_fail (change_id != NULL, GNOME_Evolution_Calendar_ObjectNotFound); - return cal_backend_file_compute_changes (cbfile, type, change_id, adds, modifies, deletes); + return cal_backend_file_compute_changes (cbfile, change_id, adds, modifies, deletes); } /* Discard_alarm handler for the file backend */ |