make callbacks and const data static
authorLuc Yriarte <luc.yriarte@intel.com>
Tue, 23 Jul 2013 12:45:35 +0000 (14:45 +0200)
committerLuc Yriarte <luc.yriarte@intel.com>
Tue, 23 Jul 2013 12:45:35 +0000 (14:45 +0200)
src/MediaServer/MediaServer.cpp

index f6a41cb..2e8a8cd 100644 (file)
@@ -25,7 +25,7 @@ using namespace WrtDeviceApis::Commons;
 /*
  * Attribute filter for browse / find on UPnPContainer2 proxy
  */
-const gchar *const arg_Filter[] = {
+static const gchar *const arg_Filter[] = {
                "Path",                 /* MediaObject id */
                "Type",                 /* MediaObject type */
                "DisplayName",  /* MediaObject title */
@@ -47,7 +47,7 @@ const gchar *const arg_Filter[] = {
 /*
  * Callback for browse / find on UPnPContainer2 proxy
  */
-void browseFindCallback(GObject *source_object, GAsyncResult *res,  gpointer user_data) {
+static void browseFindCallback(GObject *source_object, GAsyncResult *res,  gpointer user_data) {
        
        GError* gerror = NULL;
        BrowseFindCB * callback = (BrowseFindCB *) user_data;