webrtc_test: Add missing static keyword to functions 37/273937/2
authorSangchul Lee <sc11.lee@samsung.com>
Mon, 18 Apr 2022 09:47:57 +0000 (18:47 +0900)
committerSangchul Lee <sc11.lee@samsung.com>
Mon, 18 Apr 2022 10:14:11 +0000 (19:14 +0900)
Some function names are changed.
Unused function is removed.

[Version] 0.3.86
[Issue Type] Refactoring

Change-Id: I415dc7239837a13a80c537c78d0c097910da4f63
Signed-off-by: Sangchul Lee <sc11.lee@samsung.com>
packaging/capi-media-webrtc.spec
test/webrtc_test.c

index c8548282c99a998bd181f22e8679b65a541a6254..929be195b4652e0534160e1ff3dea50a3c44fc66 100644 (file)
@@ -1,6 +1,6 @@
 Name:       capi-media-webrtc
 Summary:    A WebRTC library in Tizen Native API
-Version:    0.3.85
+Version:    0.3.86
 Release:    0
 Group:      Multimedia/API
 License:    Apache-2.0
index 9812da1c1f6589efd3741de3c42ab92ead9bdf31..2b520d4b3f99a132e4c59e892f72799cf4b7eb89 100644 (file)
@@ -3872,7 +3872,7 @@ static void __auto_configure_add_peer(gchar *peer_id, bool is_offer)
        g_printerr("failed to __auto_configure_add_peer_to_offer()\n");
 }
 
-connection_s *__get_conn_from_peer_id(gchar *peer_id, int *index)
+static connection_s *__get_conn_from_peer_id(gchar *peer_id, int *index)
 {
        int i;
 
@@ -4605,7 +4605,7 @@ void display_handle_status(int index)
        g_print("\n-----------------------------------------------------------------------------------------\n");
 }
 
-void display_setting_status()
+static void display_setting_status(void)
 {
        int len_proxy = strlen(g_proxy);
        int len_server = strlen(g_signaling_server.url);
@@ -4627,7 +4627,7 @@ void display_setting_status()
        g_print("-----------------------------------------------------------------------------------------\n");
 }
 
-void display_sub_basic()
+static void display_main_menu(void)
 {
        g_print("\n");
        g_print("=========================================================================================\n");
@@ -4741,10 +4741,10 @@ void display_sub_basic()
        g_print("=========================================================================================\n");
 }
 
-static void displaymenu()
+static void displaymenu(void)
 {
        if (g_menu_state == CURRENT_STATUS_MAINMENU) {
-               display_sub_basic();
+               display_main_menu();
 
        } else if (g_menu_state == CURRENT_STATUS_ADD_MEDIA_SOURCE) {
                g_print("*** input media source type.(1:audiotest, 2:videotest, 3:mic, 4:camera, 5:screen, 6:file, 7:media packet, 8:custom audio, 9:custom video)\n");
@@ -4971,19 +4971,13 @@ static void displaymenu()
        g_print(" >>> ");
 }
 
-gboolean timeout_menu_display(void *data)
+static gboolean timeout_menu_display_cb(void *data)
 {
        displaymenu();
        return FALSE;
 }
 
-gboolean timeout_quit_program(void *data)
-{
-       quit_program();
-       return FALSE;
-}
-
-void reset_menu_state(void)
+static void reset_menu_state(void)
 {
        g_menu_state = CURRENT_STATUS_MAINMENU;
 }
@@ -5545,10 +5539,10 @@ static void interpret(char *cmd)
        }
 
        if (g_menu_state != CURRENT_STATUS_TERMINATE)
-               g_timeout_add(100, timeout_menu_display, 0);
+               g_timeout_add(100, timeout_menu_display_cb, 0);
 }
 
-gboolean input(GIOChannel *channel, GIOCondition condition, gpointer data)
+static gboolean input_watch_cb(GIOChannel *channel, GIOCondition condition, gpointer data)
 {
        gchar buf[MAX_STRING_LEN];
        gsize read;
@@ -5567,7 +5561,7 @@ int main(int argc, char *argv[])
        GIOChannel *stdin_channel;
        stdin_channel = g_io_channel_unix_new(0);
        g_io_channel_set_flags(stdin_channel, G_IO_FLAG_NONBLOCK, NULL);
-       g_io_add_watch(stdin_channel, G_IO_IN, input, NULL);
+       g_io_add_watch(stdin_channel, G_IO_IN, input_watch_cb, NULL);
 
        displaymenu();
        memset(&g_ad, 0x0, sizeof(appdata_s));