[rygel-grilo] Get rid of 'const' modifier



commit 6698f748f87a60734891d4d08df0af21fb971098
Author: Juan A. Suarez Romero <jasuarez igalia com>
Date:   Tue May 18 13:12:44 2010 +0200

    Get rid of 'const' modifier
    
    Actually, most glib code does not use 'const' modifiers in gchar** arrays.

 lib/media-server1-client.c |    4 ++--
 lib/media-server1-client.h |    4 ++--
 src/test-client.c          |   10 +++++-----
 3 files changed, 9 insertions(+), 9 deletions(-)
---
diff --git a/lib/media-server1-client.c b/lib/media-server1-client.c
index 4671a6c..37a293b 100644
--- a/lib/media-server1-client.c
+++ b/lib/media-server1-client.c
@@ -466,7 +466,7 @@ ms1_client_list_children (MS1Client *client,
                           const gchar *object_path,
                           guint offset,
                           guint max_count,
-                          const gchar **properties,
+                          gchar **properties,
                           GError **error)
 {
   DBusGProxy *gproxy;
@@ -522,7 +522,7 @@ ms1_client_search_objects (MS1Client *client,
                            const gchar *query,
                            guint offset,
                            guint max_count,
-                           const gchar **properties,
+                           gchar **properties,
                            GError **error)
 {
   DBusGProxy *gproxy;
diff --git a/lib/media-server1-client.h b/lib/media-server1-client.h
index 07c90d9..9ed713f 100644
--- a/lib/media-server1-client.h
+++ b/lib/media-server1-client.h
@@ -94,7 +94,7 @@ GList *ms1_client_list_children (MS1Client *client,
                                  const gchar *object_path,
                                  guint offset,
                                  guint max_count,
-                                 const gchar **properties,
+                                 gchar **properties,
                                  GError **error);
 
 GList *ms1_client_search_objects (MS1Client *client,
@@ -102,7 +102,7 @@ GList *ms1_client_search_objects (MS1Client *client,
                                   const gchar *query,
                                   guint offset,
                                   guint max_count,
-                                  const gchar **properties,
+                                  gchar **properties,
                                   GError **error);
 
 const gchar *ms1_client_get_root_path (MS1Client *client);
diff --git a/src/test-client.c b/src/test-client.c
index ff878b5..f87c70b 100644
--- a/src/test-client.c
+++ b/src/test-client.c
@@ -3,10 +3,10 @@
 #include <glib.h>
 #include <string.h>
 
-static const gchar *properties[] = { MS1_PROP_PATH,
-				     MS1_PROP_DISPLAY_NAME,
-                                     MS1_PROP_PARENT,
-                                     NULL };
+static gchar *properties[] = { MS1_PROP_PATH,
+                               MS1_PROP_DISPLAY_NAME,
+                               MS1_PROP_PARENT,
+                               NULL };
 
 static void
 test_properties ()
@@ -15,7 +15,7 @@ test_properties ()
   GHashTable *result;
   GValue *v;
   MS1Client *client;
-  const gchar **p;
+  gchar **p;
   gchar **provider;
   gchar **providers;
 



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