gck: Change gck_object_get attr_types arguments to const
authorStef Walter <stefw@collabora.co.uk>
Wed, 23 Nov 2011 11:59:04 +0000 (12:59 +0100)
committerStef Walter <stefw@collabora.co.uk>
Wed, 23 Nov 2011 11:59:04 +0000 (12:59 +0100)
 * So they can be used with const defined arrays

gck/gck-object.c
gck/gck.h

index 4690378..1cd041d 100644 (file)
@@ -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;
index e8fe4ab..041dcc3 100644 (file)
--- 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,