[gcr] gck: Change gck_object_get attr_types arguments to const



commit 84e3880d32f058a2a1c98fb750fc87fb9e3559e1
Author: Stef Walter <stefw collabora co uk>
Date:   Wed Nov 23 12:59:04 2011 +0100

    gck: Change gck_object_get attr_types arguments to const
    
     * So they can be used with const defined arrays

 gck/gck-object.c |   15 +++++++++++----
 gck/gck.h        |    4 ++--
 2 files changed, 13 insertions(+), 6 deletions(-)
---
diff --git a/gck/gck-object.c b/gck/gck-object.c
index 4690378..1cd041d 100644
--- a/gck/gck-object.c
+++ b/gck/gck-object.c
@@ -701,8 +701,11 @@ gck_object_get (GckObject *self, GCancellable *cancellable, GError **error, ...)
  *          or %NULL if not
  **/
 GckAttributes *
-gck_object_get_full (GckObject *self, gulong *attr_types, guint n_attr_types,
-                      GCancellable *cancellable, GError **error)
+gck_object_get_full (GckObject *self,
+                     const gulong *attr_types,
+                     guint n_attr_types,
+                     GCancellable *cancellable,
+                     GError **error)
 {
 	GetAttributes args;
 	GckAttributes *attrs;
@@ -750,8 +753,12 @@ gck_object_get_full (GckObject *self, gulong *attr_types, guint n_attr_types,
  * This call returns immediately and completes asynchronously.
  **/
 void
-gck_object_get_async (GckObject *self, gulong *attr_types, guint n_attr_types, GCancellable *cancellable,
-                      GAsyncReadyCallback callback, gpointer user_data)
+gck_object_get_async (GckObject *self,
+                      const gulong *attr_types,
+                      guint n_attr_types,
+                      GCancellable *cancellable,
+                      GAsyncReadyCallback callback,
+                      gpointer user_data)
 {
 	GckAttributes *attrs;
 	GetAttributes *args;
diff --git a/gck/gck.h b/gck/gck.h
index e8fe4ab..041dcc3 100644
--- a/gck/gck.h
+++ b/gck/gck.h
@@ -1226,13 +1226,13 @@ GckAttributes*      gck_object_get                          (GckObject *self,
                                                              ...);
 
 GckAttributes*      gck_object_get_full                     (GckObject *self,
-                                                             gulong *attr_types,
+                                                             const gulong *attr_types,
                                                              guint n_attr_types,
                                                              GCancellable *cancellable,
                                                              GError **error);
 
 void                gck_object_get_async                    (GckObject *self,
-                                                             gulong *attr_types,
+                                                             const gulong *attr_types,
                                                              guint n_attr_types,
                                                              GCancellable *cancellable,
                                                              GAsyncReadyCallback callback,



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]