[evolution-data-server/openismus-work-3-8: 5/43] EBookClient: Fix arrays passed to e_book_client_get_cursor() to be constant.



commit 414953090867feaa97184aab7db784123ae4b693
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 a695190..eacbf34 100644
--- a/addressbook/libebook/e-book-client.c
+++ b/addressbook/libebook/e-book-client.c
@@ -3753,8 +3753,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,
@@ -3815,8 +3815,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,
@@ -3906,8 +3906,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]