Fix ASAN build break 89/187089/1 accepted/tizen/unified/20180821.090933 submit/tizen/20180820.053222
authorSangchul Lee <sc11.lee@samsung.com>
Mon, 20 Aug 2018 01:49:17 +0000 (10:49 +0900)
committerSangchul Lee <sc11.lee@samsung.com>
Mon, 20 Aug 2018 01:50:51 +0000 (10:50 +0900)
Declaration of g_focus_sound_handle array is moved to mm_sound_focus_private.c

[Version] 0.12.27
[Issue Type] Bug fix

Change-Id: Idc5a03f7df22763b4cf71762489d7f4c0d7df45b
Signed-off-by: Sangchul Lee <sc11.lee@samsung.com>
include/mm_sound_focus_private.h
mm_sound_client.c
mm_sound_focus_private.c
mm_sound_proxy.c
packaging/libmm-sound.spec

index d84bb79..b4e1893 100644 (file)
@@ -62,7 +62,7 @@ typedef struct {
 } focus_cb_data_lib;
 
 typedef gboolean(*focus_callback_handler_t)(gpointer user_data);
-focus_sound_info_t g_focus_sound_handle[FOCUS_HANDLE_MAX];
+extern focus_sound_info_t g_focus_sound_handle[FOCUS_HANDLE_MAX];
 
 int focus_find_empty_index(int *handle);
 int focus_find_index_by_handle(int handle);
index b732824..3cbdf91 100644 (file)
@@ -38,8 +38,6 @@
 #define CLIENT_HANDLE_MAX 256
 #define VOLUME_TYPE_LEN 64
 
-extern focus_sound_info_t g_focus_sound_handle[FOCUS_HANDLE_MAX];
-
 struct callback_data {
        void *user_cb;
        void *user_data;
index 271a5e5..c781840 100644 (file)
@@ -33,6 +33,8 @@
 #include <mm_error.h>
 #include "include/mm_sound_focus_private.h"
 
+focus_sound_info_t g_focus_sound_handle[FOCUS_HANDLE_MAX];
+
 static gpointer _focus_thread_func(gpointer data)
 {
        unsigned int thread_id = (unsigned int)pthread_self();
index a1fb15b..fb65ec8 100644 (file)
@@ -15,8 +15,6 @@
 #include "include/mm_sound_focus_socket.h"
 #include "include/mm_sound_focus_private.h"
 
-extern focus_sound_info_t g_focus_sound_handle[FOCUS_HANDLE_MAX];
-
 struct callback_data {
        void *user_cb;
        void *user_data;
index a2e2273..dee1379 100644 (file)
@@ -1,6 +1,6 @@
 Name:       libmm-sound
 Summary:    MMSound Package contains client lib and sound_server binary
-Version:    0.12.26
+Version:    0.12.27
 Release:    0
 Group:      System/Libraries
 License:    Apache-2.0