[evolution-data-server/openismus-work-master: 94/118] Changes for Review: EBookClient API adaptations.
- From: Tristan Van Berkom <tvb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-data-server/openismus-work-master: 94/118] Changes for Review: EBookClient API adaptations.
- Date: Sat, 12 Oct 2013 02:02:51 +0000 (UTC)
commit f6ddc07d5f40ae91d0245bee516913b7da0a7748
Author: Tristan Van Berkom <tristanvb openismus com>
Date: Sat Oct 5 02:03:21 2013 +0200
Changes for Review: EBookClient API adaptations.
addressbook/libebook/e-book-client.c | 21 +++++++++++----------
addressbook/libebook/e-book-client.h | 4 ++--
2 files changed, 13 insertions(+), 12 deletions(-)
---
diff --git a/addressbook/libebook/e-book-client.c b/addressbook/libebook/e-book-client.c
index 48bb408..1653c30 100644
--- a/addressbook/libebook/e-book-client.c
+++ b/addressbook/libebook/e-book-client.c
@@ -71,7 +71,7 @@ struct _AsyncContext {
GSList *object_list;
GSList *string_list;
EContactField *sort_fields;
- EBookSortType *sort_types;
+ EBookCursorSortType *sort_types;
guint n_sort_fields;
gchar *sexp;
gchar *uid;
@@ -3765,9 +3765,9 @@ sort_param_to_strv (gpointer param,
array[i] = e_contact_field_name (fields[i]);
} else {
- EBookSortType *types = (EBookSortType *)param;
+ EBookCursorSortType *types = (EBookCursorSortType *)param;
- array[i] = e_enum_to_string (E_TYPE_BOOK_SORT_TYPE,
+ array[i] = e_enum_to_string (E_TYPE_BOOK_CURSOR_SORT_TYPE,
types[i]);
}
}
@@ -3810,7 +3810,8 @@ book_client_get_cursor_in_dbus_thread (GSimpleAsyncResult *simple,
async_context->sexp,
&local_error)) {
e_book_backend_delete_cursor (client->priv->direct_backend,
- cursor);
+ cursor,
+ NULL);
cursor = NULL;
}
}
@@ -3902,7 +3903,7 @@ static void
e_book_client_get_cursor_with_context (EBookClient *client,
const gchar *sexp,
EContactField *sort_fields,
- EBookSortType *sort_types,
+ EBookCursorSortType *sort_types,
guint n_fields,
GMainContext *context,
GCancellable *cancellable,
@@ -3920,7 +3921,7 @@ e_book_client_get_cursor_with_context (EBookClient *client,
async_context = g_slice_new0 (AsyncContext);
async_context->sexp = g_strdup (sexp);
async_context->sort_fields = g_memdup (sort_fields, sizeof (EContactField) * n_fields);
- async_context->sort_types = g_memdup (sort_types, sizeof (EBookSortType) * n_fields);
+ async_context->sort_types = g_memdup (sort_types, sizeof (EBookCursorSortType) * n_fields);
async_context->n_sort_fields = n_fields;
async_context->context = g_main_context_ref (context);
@@ -3945,7 +3946,7 @@ e_book_client_get_cursor_with_context (EBookClient *client,
* @client: an #EBookClient
* @sexp: an S-expression representing the query
* @sort_fields: an array of #EContactFields to sort the cursor with
- * @sort_types: an array of #EBookSortTypes to complement @sort_fields
+ * @sort_types: an array of #EBookCursorSortTypes to complement @sort_fields
* @n_fields: the length of the input @sort_fields and @sort_types arrays
* @cancellable: a #GCancellable; can be %NULL
* @callback: callback to call when a result is ready
@@ -3964,7 +3965,7 @@ void
e_book_client_get_cursor (EBookClient *client,
const gchar *sexp,
EContactField *sort_fields,
- EBookSortType *sort_types,
+ EBookCursorSortType *sort_types,
guint n_fields,
GCancellable *cancellable,
GAsyncReadyCallback callback,
@@ -4034,7 +4035,7 @@ e_book_client_get_cursor_finish (EBookClient *client,
* @client: an #EBookClient
* @sexp: an S-expression representing the query
* @sort_fields: an array of #EContactFields to sort the cursor with
- * @sort_types: an array of #EBookSortTypes to complement @sort_fields
+ * @sort_types: an array of #EBookCursorSortTypes to complement @sort_fields
* @n_fields: the length of the input @sort_fields and @sort_types arrays
* @out_cursor: (out): return location for an #EBookClientCursor
* @cancellable: a #GCancellable; can be %NULL
@@ -4055,7 +4056,7 @@ gboolean
e_book_client_get_cursor_sync (EBookClient *client,
const gchar *sexp,
EContactField *sort_fields,
- EBookSortType *sort_types,
+ EBookCursorSortType *sort_types,
guint n_fields,
EBookClientCursor **out_cursor,
GCancellable *cancellable,
diff --git a/addressbook/libebook/e-book-client.h b/addressbook/libebook/e-book-client.h
index 4b2d7a0..586213f 100644
--- a/addressbook/libebook/e-book-client.h
+++ b/addressbook/libebook/e-book-client.h
@@ -287,7 +287,7 @@ gboolean e_book_client_get_view_sync (EBookClient *client,
void e_book_client_get_cursor (EBookClient *client,
const gchar *sexp,
EContactField *sort_fields,
- EBookSortType *sort_types,
+ EBookCursorSortType *sort_types,
guint n_fields,
GCancellable *cancellable,
GAsyncReadyCallback callback,
@@ -299,7 +299,7 @@ gboolean e_book_client_get_cursor_finish (EBookClient *client,
gboolean e_book_client_get_cursor_sync (EBookClient *client,
const gchar *sexp,
EContactField *sort_fields,
- EBookSortType *sort_types,
+ EBookCursorSortType *sort_types,
guint n_fields,
EBookClientCursor **out_cursor,
GCancellable *cancellable,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]