sound_manager_test: use static for global variables 10/294510/1 accepted/tizen/unified/20230627.025432 accepted/tizen/unified/dev/20230726.115812
authorSeungbae Shin <seungbae.shin@samsung.com>
Tue, 20 Jun 2023 09:17:41 +0000 (18:17 +0900)
committerSeungbae Shin <seungbae.shin@samsung.com>
Tue, 20 Jun 2023 09:18:11 +0000 (18:18 +0900)
[Version] 0.7.8
[Issue Type] SAM

Change-Id: I97bbfe3ce8930eb37ad99374145c1ebbea6a118d

packaging/capi-media-sound-manager.spec
test/sound_manager_test.c

index e68af66..9b12a0d 100644 (file)
@@ -1,6 +1,6 @@
 Name:       capi-media-sound-manager
 Summary:    Sound Manager library
-Version:    0.7.7
+Version:    0.7.8
 Release:    0
 Group:      Multimedia/API
 License:    Apache-2.0
index 203c4bc..0e12513 100644 (file)
@@ -128,17 +128,17 @@ enum {
 
 static int g_menu_state = CURRENT_STATUS_MAINMENU;
 
-GMainLoop* g_loop;
-sound_device_list_h g_device_list = NULL;
-sound_device_h g_device = NULL;
-sound_device_mask_e g_device_mask = SOUND_DEVICE_ALL_MASK;
-sound_stream_info_h g_stream_info_h = NULL;
-virtual_sound_stream_h g_vstream_h = NULL;
-sound_stream_ducking_h g_stream_ducking_h = NULL;
-int g_volume_cb_id;
-int g_internal_volume_cb_id;
-int g_device_conn_cb_id;
-int g_device_running_cb_id;
+static GMainLoop* g_loop;
+static sound_device_list_h g_device_list = NULL;
+static sound_device_h g_device = NULL;
+static sound_device_mask_e g_device_mask = SOUND_DEVICE_ALL_MASK;
+static sound_stream_info_h g_stream_info_h = NULL;
+static virtual_sound_stream_h g_vstream_h = NULL;
+static sound_stream_ducking_h g_stream_ducking_h = NULL;
+static int g_volume_cb_id;
+static int g_internal_volume_cb_id;
+static int g_device_conn_cb_id;
+static int g_device_running_cb_id;
 
 static const char g_running_str[] = { 'x', 'o' };
 static const char *g_device_direction_str[] = {"IN", "OUT", "BOTH"};