Add emun of player error type (service disconnected) 15/47215/6 accepted/tizen/mobile/20150922.080214 accepted/tizen/tv/20150922.080227 accepted/tizen/wearable/20150922.080241 submit/tizen/20150922.055111
authorHyongtaek Lim <hyongtaek.lim@samsung.com>
Tue, 1 Sep 2015 04:55:59 +0000 (13:55 +0900)
committerHyongtaek Lim <hyongtaek.lim@samsung.com>
Tue, 22 Sep 2015 05:34:32 +0000 (22:34 -0700)
Signed-off-by: Hyongtaek Lim <hyongtaek.lim@samsung.com>
Change-Id: Ifd2c000ba992e6d826d6d6faf187283252b93242

include/mobile/player.h
include/wearable/player.h

index 251443628a8d0d0b54def43528796ff47d6e7f61..152b4fa24c4447f3fd5fe30b71d90e15618c39a6 100644 (file)
@@ -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);
 
index 44b2414db2276012957d0f7cf1cdd5efaa05c923..80740ec9e6ea77d8589515fa5a39b4a7e058e72c 100644 (file)
@@ -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);