And add a FIXME about a missing call to the finish method.
}
-void chime_connection_update_last_read_sync (ChimeConnection *self,
- ChimeObject *obj,
- const gchar *msg_id,
- GCancellable *cancellable,
- GAsyncReadyCallback callback,
- gpointer user_data)
+void chime_connection_update_last_read_async (ChimeConnection *self,
+ ChimeObject *obj,
+ const gchar *msg_id,
+ GCancellable *cancellable,
+ GAsyncReadyCallback callback,
+ gpointer user_data)
{
g_return_if_fail(CHIME_IS_CONNECTION(self));
ChimeConnectionPrivate *priv = CHIME_CONNECTION_GET_PRIVATE (self);
GAsyncResult *result,
GError **error);
-void chime_connection_update_last_read_sync (ChimeConnection *self,
+void chime_connection_update_last_read_async (ChimeConnection *self,
ChimeObject *obj,
const gchar *msg_id,
GCancellable *cancellable,
g_free(key);
g_free(val);
- chime_connection_update_last_read_sync(cxn, obj, msg_id, NULL, NULL, NULL);
+ /* FIXME: we need to call last_read_finish to handle a possible error */
+ chime_connection_update_last_read_async(cxn, obj, msg_id, NULL, NULL, NULL);
}
/* WARE! msg_id is allocated, msg_time is const */