[ACR-1185][2nd] Change API naming 28/173828/3
authorEunhae Choi <eunhae1.choi@samsung.com>
Mon, 26 Mar 2018 07:49:20 +0000 (16:49 +0900)
committerEunhae Choi <eunhae1.choi@samsung.com>
Mon, 26 Mar 2018 08:44:02 +0000 (17:44 +0900)
Change-Id: Ia0a5b3c0507ce5c16084a10fe02afaedc2acb9a5

include/player.h
src/player.c
test/player_test.c

index b154f7d5c54079d51b00a10b0b92f144b6ceffc0..5b02682e174e45555bc8a4b3dd941a820832b7f7 100644 (file)
@@ -2279,7 +2279,7 @@ int player_360_is_content_spherical(player_h player, bool *is_spherical);
  * @details In case the media content is spherical, display mode can be selected by this function.
  * @since_tizen 5.0
  * @param[in] player   The handle to the media player
- * @param[in] enable   The 360 video display status: @c true = display with 360 video mode,
+ * @param[in] enabled  The 360 video display status: @c true = display with 360 video mode,
                        @c false = display with full panorama mode. The default value is @c true.
  * @return @c 0 on success,
  *         otherwise a negative error value
@@ -2291,7 +2291,7 @@ int player_360_is_content_spherical(player_h player, bool *is_spherical);
  * @pre The player state must be one of #PLAYER_STATE_IDLE, #PLAYER_STATE_READY, #PLAYER_STATE_PLAYING or #PLAYER_STATE_PAUSED.
  * @see player_360_is_enabled()
  */
-int player_360_set_enabled(player_h player, bool enable);
+int player_360_set_enabled(player_h player, bool enabled);
 
 /**
  * @brief Gets the 360 video display mode.
@@ -2308,7 +2308,7 @@ int player_360_set_enabled(player_h player, bool enable);
  * @retval #PLAYER_ERROR_INVALID_OPERATION Invalid operation
  * @retval #PLAYER_ERROR_FEATURE_NOT_SUPPORTED_ON_DEVICE Unsupported feature
  * @pre The player state must be one of #PLAYER_STATE_IDLE, #PLAYER_STATE_READY, #PLAYER_STATE_PLAYING or #PLAYER_STATE_PAUSED.
- * @see player_360_set_enable()
+ * @see player_360_set_enabled()
  */
 int player_360_is_enabled(player_h player, bool *enabled);
 
index 809be61ce66b23e0891c28f404804f00f97f3e51..016ca0c473d352b779c404da6be2ceb0760f78a2 100644 (file)
@@ -4512,17 +4512,17 @@ int player_360_is_content_spherical(player_h player, bool *is_spherical)
        return ret;
 }
 
-int player_360_set_enable(player_h player, bool enable)
+int player_360_set_enabled(player_h player, bool enabled)
 {
        PLAYER_FEATURE_CHECK(PLAYER_FEATURE_OPENGL);
        PLAYER_INSTANCE_CHECK(player);
        int ret = PLAYER_ERROR_NONE;
-       muse_player_api_e api = MUSE_PLAYER_API_360_SET_ENABLE;
+       muse_player_api_e api = MUSE_PLAYER_API_360_SET_ENABLED;
        player_cli_s *pc = (player_cli_s *) player;
        char *ret_buf = NULL;
-       int val = (int)enable;
+       int val = (int)enabled;
 
-       LOGD("ENTER %d", enable);
+       LOGD("ENTER %d", enabled);
 
        player_msg_send1(api, pc, ret_buf, ret, INT, val);
        g_free(ret_buf);
index 3826f60e1fd5d0583255f07b857381456c49dc35..73f9a15994083a284b02064179cc08363ad17d1b 100644 (file)
@@ -1968,7 +1968,7 @@ static void video360_set_enable(bool enable)
        event_handler_set_dov_fov();
 #endif
 
-       if (player_360_set_enable(g_player[0], enable) != PLAYER_ERROR_NONE)
+       if (player_360_set_enabled(g_player[0], enable) != PLAYER_ERROR_NONE)
                g_print("failed to %s video 360 mode\n", enable ? "enable" : "disable");
 }