diff options
author | Seth Alves <alves@src.gnome.org> | 2000-06-29 21:23:44 +0800 |
---|---|---|
committer | Seth Alves <alves@src.gnome.org> | 2000-06-29 21:23:44 +0800 |
commit | 70c974e7d9d44db682cd9cc447485f292ad2aa54 (patch) | |
tree | 83d68fc016f555e36e8fa010d1f8b2367307fff3 /calendar/pcs/cal-backend.c | |
parent | fe1bb9d0b60ab6a1b8a8c525d28d0b09d2d74641 (diff) | |
download | gsoc2013-evolution-70c974e7d9d44db682cd9cc447485f292ad2aa54.tar gsoc2013-evolution-70c974e7d9d44db682cd9cc447485f292ad2aa54.tar.gz gsoc2013-evolution-70c974e7d9d44db682cd9cc447485f292ad2aa54.tar.bz2 gsoc2013-evolution-70c974e7d9d44db682cd9cc447485f292ad2aa54.tar.lz gsoc2013-evolution-70c974e7d9d44db682cd9cc447485f292ad2aa54.tar.xz gsoc2013-evolution-70c974e7d9d44db682cd9cc447485f292ad2aa54.tar.zst gsoc2013-evolution-70c974e7d9d44db682cd9cc447485f292ad2aa54.zip |
server code to service these:
* pcs/cal.c (Cal_get_uid_by_pilot_id):
(Cal_update_pilot_id):
* pcs/cal-backend-imc.c (cal_backend_imc_update_pilot_id):
(cal_backend_imc_get_uid_by_pilot_id):
* pcs/cal-backend.c (cal_backend_get_uid_by_pilot_id):
(cal_backend_update_pilot_id): server code to service these:
* gui/calendar-pilot-sync.c: updated to make use of cal-client.
also uses dirty bits on both sides to aid in syncing.
* cal-client/cal-client.c (cal_client_get_uid_by_pilot_id): new
function -- ask the cal server to return uid given an object's
pilot id.
(cal_client_update_pilot_id): new function -- inform the
cal server of an objects pilot id and pilot dirty-flag.
svn path=/trunk/; revision=3789
Diffstat (limited to 'calendar/pcs/cal-backend.c')
-rw-r--r-- | calendar/pcs/cal-backend.c | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/calendar/pcs/cal-backend.c b/calendar/pcs/cal-backend.c index 7956f77473..658f55012b 100644 --- a/calendar/pcs/cal-backend.c +++ b/calendar/pcs/cal-backend.c @@ -314,6 +314,29 @@ cal_backend_get_alarms_for_object (CalBackend *backend, const char *uid, return (* CLASS (backend)->get_alarms_for_object) (backend, uid, start, end, alarms); } + +char *cal_backend_get_uid_by_pilot_id (CalBackend *backend, unsigned long int pilot_id) +{ + g_return_val_if_fail (backend != NULL, FALSE); + g_return_val_if_fail (IS_CAL_BACKEND (backend), FALSE); + g_assert (CLASS(backend)->get_uid_by_pilot_id != NULL); + return (* CLASS(backend)->get_uid_by_pilot_id) (backend, pilot_id); +} + + +void cal_backend_update_pilot_id (CalBackend *backend, const char *uid, + unsigned long int pilot_id, + unsigned long int pilot_status) +{ + g_return_if_fail (backend != NULL); + g_return_if_fail (IS_CAL_BACKEND (backend)); + g_assert (CLASS(backend)->update_pilot_id != NULL); + (* CLASS(backend)->update_pilot_id) (backend, uid, + pilot_id, pilot_status); +} + + + /** * cal_backend_update_object: * @backend: A calendar backend. |