/* List of Cal objects */
GMutex *clients_mutex;
- GSList *clients;
+ GList *clients;
GMutex *views_mutex;
- GSList *views;
+ GList *views;
/* ECalBackend to pass notifications on to */
ECalBackend *notification_proxy;
g_assert (priv->clients == NULL);
- g_slist_free (priv->views);
+ g_list_free (priv->views);
/* should be NULL, anyway */
- g_slist_free (priv->clients);
+ g_list_free (priv->clients);
g_mutex_free (priv->clients_mutex);
g_mutex_free (priv->views_mutex);
g_object_weak_ref (G_OBJECT (cal), cal_destroy_cb, backend);
g_mutex_lock (priv->clients_mutex);
- priv->clients = g_slist_append (priv->clients, cal);
+ priv->clients = g_list_append (priv->clients, cal);
g_mutex_unlock (priv->clients_mutex);
}
/* Disconnect */
g_mutex_lock (backend->priv->clients_mutex);
- backend->priv->clients = g_slist_remove (backend->priv->clients, cal);
+ backend->priv->clients = g_list_remove (backend->priv->clients, cal);
if (backend->priv->clients == NULL)
backend->priv->opening = FALSE;
g_mutex_lock (backend->priv->views_mutex);
- backend->priv->views = g_slist_append (backend->priv->views, view);
+ backend->priv->views = g_list_append (backend->priv->views, view);
g_mutex_unlock (backend->priv->views_mutex);
}
g_mutex_lock (backend->priv->views_mutex);
- backend->priv->views = g_slist_remove (backend->priv->views, view);
+ backend->priv->views = g_list_remove (backend->priv->views, view);
g_mutex_unlock (backend->priv->views_mutex);
}
gpointer user_data),
gpointer user_data)
{
- const GSList *views;
+ GList *views;
EDataCalView *view;
gboolean stop = FALSE;
const gchar *message)
{
ECalBackendPrivate *priv = backend->priv;
- GSList *l;
+ GList *l;
if (priv->notification_proxy) {
e_cal_backend_notify_error (priv->notification_proxy, message);
gboolean is_readonly)
{
ECalBackendPrivate *priv;
- GSList *l;
+ GList *l;
priv = backend->priv;
priv->readonly = is_readonly;
gboolean is_online)
{
ECalBackendPrivate *priv;
- GSList *clients;
+ GList *clients;
priv = backend->priv;
g_mutex_lock (priv->clients_mutex);
- for (clients = priv->clients; clients != NULL; clients = g_slist_next (clients))
+ for (clients = priv->clients; clients != NULL; clients = g_list_next (clients))
e_data_cal_report_online (E_DATA_CAL (clients->data), is_online);
g_mutex_unlock (priv->clients_mutex);
GError *error)
{
ECalBackendPrivate *priv;
- GSList *clients;
+ GList *clients;
priv = backend->priv;
g_mutex_lock (priv->clients_mutex);
priv->opening = FALSE;
priv->opened = error == NULL;
- for (clients = priv->clients; clients != NULL; clients = g_slist_next (clients))
+ for (clients = priv->clients; clients != NULL; clients = g_list_next (clients))
e_data_cal_report_opened (E_DATA_CAL (clients->data), error);
g_mutex_unlock (priv->clients_mutex);
const gchar *prop_value)
{
ECalBackendPrivate *priv;
- GSList *clients;
+ GList *clients;
g_return_if_fail (E_IS_CAL_BACKEND (backend));
g_return_if_fail (prop_name != NULL);
priv = backend->priv;
g_mutex_lock (priv->clients_mutex);
- for (clients = priv->clients; clients != NULL; clients = g_slist_next (clients))
+ for (clients = priv->clients; clients != NULL; clients = g_list_next (clients))
e_data_cal_report_backend_property_changed (E_DATA_CAL (clients->data), prop_name, prop_value);
g_mutex_unlock (priv->clients_mutex);