diff options
| author | Rodrigo Moya <rodrigo@novell.com> | 2005-02-24 10:58:59 +0000 |
|---|---|---|
| committer | Rodrigo Moya <rodrigo@src.gnome.org> | 2005-02-24 10:58:59 +0000 |
| commit | d5dae2f0dcd356ea978445d8f7f93dcea990c986 (patch) | |
| tree | 2a944294564d73dff63e9be3be75d28a0ff2b0a0 /calendar/backends | |
| parent | bf8e73d00032236e58b308709eacc95f0e24612d (diff) | |
| download | evolution-data-server-d5dae2f0dcd356ea978445d8f7f93dcea990c986.tar.gz | |
set backend's lock to TRUE.
2005-02-22 Rodrigo Moya <rodrigo@novell.com>
* backends/http/e-cal-backend-http.c (e_cal_backend_http_init):
* backends/groupwise/e-cal-backend-groupwise.c
(e_cal_backend_groupwise_init):
* backends/weather/e-cal-backend-weather.c
(e_cal_backend_weather_init): set backend's lock to TRUE.
2005-02-22 JP Rosevear <jpr@novell.com>
* libedata-cal/e-cal-backend-sync.c: added a lock wrapper to make
calls be locked if backend is set so.
(e_cal_backend_sync_set_lock): new function.
(e_cal_backend_sync_is_read_only, e_cal_backend_sync_get_cal_address,
e_cal_backend_sync_get_alarm_email_address,
e_cal_backend_sync_get_ldap_attribute,
e_cal_backend_sync_get_static_capabilities, e_cal_backend_sync_open,
e_cal_backend_sync_remove, e_cal_backend_sync_create_object,
e_cal_backend_sync_modify_object, e_cal_backend_sync_remove_object,
e_cal_backend_sync_discard_alarm, e_cal_backend_sync_receive_objects,
e_cal_backend_sync_send_objects, e_cal_backend_sync_get_default_object,
e_cal_backend_sync_get_object, e_cal_backend_sync_get_object_list,
e_cal_backend_sync_get_timezone, e_cal_backend_sync_add_timezone,
e_cal_backend_sync_set_default_timezone, e_cal_backend_sync_get_changes,
e_cal_backend_sync_get_free_busy): wrap calls to backend methods in
our lock wrapper.
* backends/contacts/e-cal-backend-contacts.c
(e_cal_backend_contacts_init):
* backends/file/e-cal-backend-file.c (e_cal_backend_file_init):
set backend's lock to TRUE.
Diffstat (limited to 'calendar/backends')
5 files changed, 11 insertions, 1 deletions
diff --git a/calendar/backends/contacts/e-cal-backend-contacts.c b/calendar/backends/contacts/e-cal-backend-contacts.c index 3ae7f792d..e03939ba8 100644 --- a/calendar/backends/contacts/e-cal-backend-contacts.c +++ b/calendar/backends/contacts/e-cal-backend-contacts.c @@ -933,6 +933,8 @@ e_cal_backend_contacts_init (ECalBackendContacts *cbc, ECalBackendContactsClass priv->default_zone = icaltimezone_get_utc_timezone (); cbc->priv = priv; + + e_cal_backend_sync_set_lock (E_CAL_BACKEND_SYNC (cbc), TRUE); } /* Class initialization function for the contacts backend */ diff --git a/calendar/backends/file/e-cal-backend-file.c b/calendar/backends/file/e-cal-backend-file.c index 32e926e4c..cf348cd99 100644 --- a/calendar/backends/file/e-cal-backend-file.c +++ b/calendar/backends/file/e-cal-backend-file.c @@ -2430,7 +2430,7 @@ e_cal_backend_file_send_objects (ECalBackendSync *backend, EDataCal *cal, const /* Object initialization function for the file backend */ static void -e_cal_backend_file_init (ECalBackendFile *cbfile, ECalBackendFileClass *class) +e_cal_backend_file_init (ECalBackendFile *cbfile) { ECalBackendFilePrivate *priv; @@ -2449,6 +2449,8 @@ e_cal_backend_file_init (ECalBackendFile *cbfile, ECalBackendFileClass *class) /* The timezone defaults to UTC. */ priv->default_zone = icaltimezone_get_utc_timezone (); + + e_cal_backend_sync_set_lock (E_CAL_BACKEND_SYNC (cbfile), TRUE); } /* Class initialization function for the file backend */ diff --git a/calendar/backends/groupwise/e-cal-backend-groupwise.c b/calendar/backends/groupwise/e-cal-backend-groupwise.c index feee2e8a1..423420436 100644 --- a/calendar/backends/groupwise/e-cal-backend-groupwise.c +++ b/calendar/backends/groupwise/e-cal-backend-groupwise.c @@ -1966,6 +1966,8 @@ e_cal_backend_groupwise_init (ECalBackendGroupwise *cbgw, ECalBackendGroupwiseCl priv->mutex = g_mutex_new (); cbgw->priv = priv; + + e_cal_backend_sync_set_lock (E_CAL_BACKEND_SYNC (cbgw), TRUE); } /* Class initialization function for the gw backend */ diff --git a/calendar/backends/http/e-cal-backend-http.c b/calendar/backends/http/e-cal-backend-http.c index 97ab9ac91..b81d1dc18 100644 --- a/calendar/backends/http/e-cal-backend-http.c +++ b/calendar/backends/http/e-cal-backend-http.c @@ -968,6 +968,8 @@ e_cal_backend_http_init (ECalBackendHttp *cbhttp, ECalBackendHttpClass *class) priv->uri = NULL; priv->reload_timeout_id = 0; priv->opened = FALSE; + + e_cal_backend_sync_set_lock (E_CAL_BACKEND_SYNC (cbhttp), TRUE); } /* Class initialization function for the file backend */ diff --git a/calendar/backends/weather/e-cal-backend-weather.c b/calendar/backends/weather/e-cal-backend-weather.c index f54077218..78af6608a 100644 --- a/calendar/backends/weather/e-cal-backend-weather.c +++ b/calendar/backends/weather/e-cal-backend-weather.c @@ -829,6 +829,8 @@ e_cal_backend_weather_init (ECalBackendWeather *cbw, ECalBackendWeatherClass *cl priv->city = NULL; priv->zones = g_hash_table_new_full (g_str_hash, g_str_equal, g_free, free_zone); + + e_cal_backend_sync_set_lock (E_CAL_BACKEND_SYNC (cbw), TRUE); } /* Class initialization function for the weather backend */ |
