From: Hyongtaek Lim Date: Tue, 1 Sep 2015 04:55:59 +0000 (+0900) Subject: Add emun of player error type (service disconnected) X-Git-Tag: submit/tizen/20150922.055111^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e695e14f57020f7af0a15a99db62e36a90ba6821;p=platform%2Fcore%2Fapi%2Fplayer.git Add emun of player error type (service disconnected) Signed-off-by: Hyongtaek Lim Change-Id: Ifd2c000ba992e6d826d6d6faf187283252b93242 --- diff --git a/include/mobile/player.h b/include/mobile/player.h index 2514436..152b4fa 100644 --- a/include/mobile/player.h +++ b/include/mobile/player.h @@ -82,6 +82,7 @@ typedef enum PLAYER_ERROR_DRM_NOT_PERMITTED = PLAYER_ERROR_CLASS | 0x0b, /**< Format not permitted */ PLAYER_ERROR_RESOURCE_LIMIT = PLAYER_ERROR_CLASS | 0x0c, /**< Resource limit */ PLAYER_ERROR_PERMISSION_DENIED = TIZEN_ERROR_PERMISSION_DENIED, /**< Permission denied */ + PLAYER_ERROR_SERVICE_DISCONNECTED = PLAYER_ERROR_CLASS | 0x0d, /**< Socket connection lost (Since 3.0) */ } player_error_e; /** @@ -298,12 +299,21 @@ typedef void (*player_interrupted_cb)(player_interrupted_code_e code, void *user /** * @brief Called when an error occurs in the media player. + * @details Following error codes can be delivered. + * #PLAYER_ERROR_INVALID_OPERATION + * #PLAYER_ERROR_INVALID_STATE + * #PLAYER_ERROR_INVALID_URI + * #PLAYER_ERROR_CONNECTION_FAILED + * #PLAYER_ERROR_DRM_NOT_PERMITTED + * #PLAYER_ERROR_FILE_NO_SPACE_ON_DEVICE + * #PLAYER_ERROR_NOT_SUPPORTED_FILE + * #PLAYER_ERROR_SEEK_FAILED + * #PLAYER_ERROR_SERVICE_DISCONNECTED * @since_tizen 2.3 * @param[in] error_code The error code * @param[in] user_data The user data passed from the callback registration function * @see player_set_error_cb() * @see player_unset_error_cb() - * @see #player_error_e */ typedef void (*player_error_cb)(int error_code, void *user_data); diff --git a/include/wearable/player.h b/include/wearable/player.h index 44b2414..80740ec 100644 --- a/include/wearable/player.h +++ b/include/wearable/player.h @@ -82,6 +82,7 @@ typedef enum PLAYER_ERROR_DRM_NOT_PERMITTED = PLAYER_ERROR_CLASS | 0x0b, /**< Format not permitted */ PLAYER_ERROR_RESOURCE_LIMIT = PLAYER_ERROR_CLASS | 0x0c, /**< Resource limit */ PLAYER_ERROR_PERMISSION_DENIED = TIZEN_ERROR_PERMISSION_DENIED, /**< Permission denied */ + PLAYER_ERROR_SERVICE_DISCONNECTED = PLAYER_ERROR_CLASS | 0x0d, /**< Socket connection lost (Since 3.0) */ } player_error_e; /** @@ -297,12 +298,21 @@ typedef void (*player_interrupted_cb)(player_interrupted_code_e code, void *user /** * @brief Called when an error occurs in the media player. + * @details Following error codes can be delivered. + * #PLAYER_ERROR_INVALID_OPERATION + * #PLAYER_ERROR_INVALID_STATE + * #PLAYER_ERROR_INVALID_URI + * #PLAYER_ERROR_CONNECTION_FAILED + * #PLAYER_ERROR_DRM_NOT_PERMITTED + * #PLAYER_ERROR_FILE_NO_SPACE_ON_DEVICE + * #PLAYER_ERROR_NOT_SUPPORTED_FILE + * #PLAYER_ERROR_SEEK_FAILED + * #PLAYER_ERROR_SERVICE_DISCONNECTED * @since_tizen 2.3.1 * @param[in] error_code The error code * @param[in] user_data The user data passed from the callback registration function * @see player_set_error_cb() * @see player_unset_error_cb() - * @see #player_error_e */ typedef void (*player_error_cb)(int error_code, void *user_data);