[evolution-data-server] EBookClient: Fix arrays passed to e_book_client_get_cursor() to be constant.



commit 7fabaecd132065af95e609983eea727dac2d4c09
Author: Tristan Van Berkom <tristanvb openismus com>
Date:   Sat Nov 16 16:35:07 2013 +0900

    EBookClient: Fix arrays passed to e_book_client_get_cursor() to be constant.
    
    Minor API fixup, the arrays passed to e_book_client_get_cursor() should
    be const.

 addressbook/libebook/e-book-client.c |   12 ++++++------
 addressbook/libebook/e-book-client.h |    8 ++++----
 2 files changed, 10 insertions(+), 10 deletions(-)
---
diff --git a/addressbook/libebook/e-book-client.c b/addressbook/libebook/e-book-client.c
index f5b0d40..6459100 100644
--- a/addressbook/libebook/e-book-client.c
+++ b/addressbook/libebook/e-book-client.c
@@ -3930,8 +3930,8 @@ book_client_get_cursor_in_dbus_thread (GSimpleAsyncResult *simple,
 static void
 e_book_client_get_cursor_with_context (EBookClient *client,
                                       const gchar *sexp,
-                                      EContactField *sort_fields,
-                                      EBookCursorSortType *sort_types,
+                                      const EContactField *sort_fields,
+                                      const EBookCursorSortType *sort_types,
                                       guint n_fields,
                                       GMainContext *context,
                                       GCancellable *cancellable,
@@ -3992,8 +3992,8 @@ e_book_client_get_cursor_with_context (EBookClient *client,
 void
 e_book_client_get_cursor (EBookClient *client,
                          const gchar *sexp,
-                         EContactField *sort_fields,
-                         EBookCursorSortType *sort_types,
+                         const EContactField *sort_fields,
+                         const EBookCursorSortType *sort_types,
                          guint n_fields,
                          GCancellable *cancellable,
                          GAsyncReadyCallback callback,
@@ -4083,8 +4083,8 @@ e_book_client_get_cursor_finish (EBookClient *client,
 gboolean
 e_book_client_get_cursor_sync (EBookClient *client,
                               const gchar *sexp,
-                              EContactField *sort_fields,
-                              EBookCursorSortType *sort_types,
+                              const EContactField *sort_fields,
+                              const 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 586213f..f21a104 100644
--- a/addressbook/libebook/e-book-client.h
+++ b/addressbook/libebook/e-book-client.h
@@ -286,8 +286,8 @@ gboolean    e_book_client_get_view_sync     (EBookClient *client,
                                                 GError **error);
 void           e_book_client_get_cursor        (EBookClient *client,
                                                 const gchar *sexp,
-                                                EContactField *sort_fields,
-                                                EBookCursorSortType *sort_types,
+                                                const EContactField *sort_fields,
+                                                const EBookCursorSortType *sort_types,
                                                 guint n_fields,
                                                 GCancellable *cancellable,
                                                 GAsyncReadyCallback callback,
@@ -298,8 +298,8 @@ gboolean    e_book_client_get_cursor_finish (EBookClient *client,
                                                 GError **error);
 gboolean       e_book_client_get_cursor_sync   (EBookClient *client,
                                                 const gchar *sexp,
-                                                EContactField *sort_fields,
-                                                EBookCursorSortType *sort_types,
+                                                const EContactField *sort_fields,
+                                                const 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]