Re-align error enumeration and remove unused error enumeration 29/50529/3 accepted/tizen/mobile/20151102.055140 accepted/tizen/tv/20151102.055156 accepted/tizen/wearable/20151102.055217 submit/tizen/20151102.020759
authorSangchul Lee <sc11.lee@samsung.com>
Thu, 29 Oct 2015 11:41:27 +0000 (20:41 +0900)
committerSangchul Lee <sc11.lee@samsung.com>
Thu, 29 Oct 2015 12:13:28 +0000 (21:13 +0900)
[Version] Release 0.2.90
[Profile] Common
[Issue Type] code clean-up

Change-Id: I64ff6bc319ca590f162c717c09d043bc342c3d55

include/mm_error.h
packaging/libmm-common.spec

index eef4562..d30776f 100755 (executable)
 #define MM_ERROR_SOUND_CLASS                   0x80000200              /**< Category for describing sound error group */
 #define MM_ERROR_RADIO_CLASS                   0x80000300              /**< Category for describing radio error group */
 #define MM_ERROR_PLAYER_CLASS                  0x80000400              /**< Category for describing player error group */
+#define MM_ERROR_RESOURCE_CLASS                        0x80000500              /**< Category for describing resource error group */
 #define MM_ERROR_FILE_CLASS                    0x80000600              /**< Category for describing file error group */
 #define MM_ERROR_STREAMRECORDER_CLASS          0x80000700      /**< Category for describing streamrecorder error group */
 #define MM_ERROR_CAMCORDER_CLASS               0x80000800              /**< Category for describing camcorder error group */
 #define MM_ERROR_WFD_CLASS             0x80000900              /**< Category for describing wifi-display error group */
 #define MM_ERROR_IMAGE_CLASS                   0x80000a00              /**< Category for describing image error group */
-#define MM_ERROR_MGR_CLASS                     0x80000c00              /**< Category for describing message error group */
 #define MM_ERROR_POLICY_CLASS                  0x80000b00              /**< Category for Policy */
-#define MM_ERROR_RESOURCE_CLASS                0x80000f00              /**< Category for Resource */
-#define MM_ERROR_NOT_IMPLEMENTED               0x80000d00              /**< Error message for not implemented functions */
-#define MM_ERROR_TRANSCODE_CLASS               0x80000e00              /**< Error message for not implemented functions */
+#define MM_ERROR_TRANSCODE_CLASS               0x80000c00              /**< Error message for describing transcode error group */
 
 /*
-      MM_ERROR_CLASS
+       MM_ERROR_CLASS
 */
 #define MM_ERROR_UNKNOWN                       (MM_ERROR_CLASS | 0x00)         /**< Unclassified error */
 #define MM_ERROR_INVALID_ARGUMENT              (MM_ERROR_CLASS | 0x01)         /**< Invalid argument */
@@ -69,7 +67,7 @@
 #define MM_ERROR_FILE_WRITE                    (MM_ERROR_CLASS | 0x07)         /**< Fail to write data to file */
 #define MM_ERROR_END_OF_FILE                   (MM_ERROR_CLASS | 0x08)         /**< End of file */
 #define MM_ERROR_NOT_SUPPORT_API               (MM_ERROR_CLASS | 0x09)         /**< Not supported API*/
-
+#define MM_ERROR_NOT_IMPLEMENTED               (MM_ERROR_CLASS | 0x0a)         /**< Not implemented functions */
 
 /*
        MM_ERROR_COMMON_CLASS
 
 
 /*
-        MM_ERROR_RADIO_CLASS
+       MM_ERROR_RADIO_CLASS
  */
 #define MM_ERROR_RADIO_NOT_INITIALIZED                 (MM_ERROR_RADIO_CLASS | 0x01)           /**< Radio instance is not initialized */
 #define MM_ERROR_RADIO_NO_FREE_SPACE                   (MM_ERROR_RADIO_CLASS | 0x02)           /**< Not enough memory */
 #define MM_ERROR_PLAYER_SOUND_EFFECT_NOT_SUPPORTED_FILTER              (MM_ERROR_PLAYER_CLASS | 0x51)          /**< Not supported filter */
 #define MM_ERROR_PLAYER_SOUND_EFFECT_INVALID_STATUS                    (MM_ERROR_PLAYER_CLASS | 0x52)          /**< Invalid status */
 
+
+/*
+       MM_ERROR_RESOURCE_CLASS
+ */
+#define MM_ERROR_RESOURCE_NOT_INITIALIZED                      (MM_ERROR_RESOURCE_CLASS | 0x01)                /**< Not initialized */
+#define MM_ERROR_RESOURCE_INTERNAL                             (MM_ERROR_RESOURCE_CLASS | 0x02)                /**< Internal errors */
+#define MM_ERROR_RESOURCE_INVALID_STATE                                (MM_ERROR_RESOURCE_CLASS | 0x03)                /**< Invalid state */
+
+
 /*
        MM_CAMCORDER_ERROR_CLASS
 */
 #define MM_ERROR_TRANSCODE_SEEK_FAILED                         (MM_ERROR_TRANSCODE_CLASS | 0x27)       /**< Transcode video seek  failed */
 
 /*
*  MM_ERROR_FILE_CLASS
      MM_ERROR_FILE_CLASS
  */
 #define MM_ERROR_FILE_INTERNAL                 (MM_ERROR_FILE_CLASS | 0x01)            /**< Internal error */
 #define MM_ERROR_FILE_UNKNOWN_FORMAT           (MM_ERROR_FILE_CLASS | 0x02)            /**< Unknown file format */
 
 
 /*
-       MM_MGR_ERROR_CLASS
-*/
-#define MM_ERROR_MGR_NOT_INITIALIZED                   (MM_ERROR_MGR_CLASS | 1)                /**< Not initialized MGR */
-#define MM_ERROR_MGR_CODEC_NOT_FOUND                   (MM_ERROR_MGR_CLASS | 2)                /**< Not supported format */
-#define MM_ERROR_MGR_DECODE                            (MM_ERROR_MGR_CLASS | 3)                /**< Error while decoding data */
-#define MM_ERROR_MGR_FILE_NOT_FOUND                    (MM_ERROR_MGR_CLASS | 5)                /**< Cannot find file */
-#define MM_ERROR_MGR_STREAM_NOT_FOUND                  (MM_ERROR_MGR_CLASS | 6)                /**< Cannot find stream */
-#define MM_ERROR_MGR_END_OF_STREAM                     (MM_ERROR_MGR_CLASS | 7)                /**< End of stream */
-#define MM_ERROR_MGR_SEEK                              (MM_ERROR_MGR_CLASS | 8)                /**< Seek related errors */
-#define MM_ERROR_MGR_INTERNAL                          (MM_ERROR_MGR_CLASS | 9)                /**< Internal errors */
-#define MM_ERROR_MGR_INVALID_STATE                     (MM_ERROR_MGR_CLASS | 10)               /**< Invalid state */
-#define MM_ERROR_MGR_OPERATION_NOT_PERMITTED           (MM_ERROR_MGR_CLASS | 0xA)              /**<  Not allowed operation*/
-#define MM_ERROR_MGR_CAMERA_DEVICE_NOT_FOUND           (MM_ERROR_MGR_CLASS | 0xB)              /**< Cannot find camera device */
-#define MM_ERROR_MGR_CAMERA_DEVICE_BUSY                (MM_ERROR_MGR_CLASS | 0xC)              /**< Busy camera device */
-#define MM_ERROR_MGR_CAMERA_DEVICE_OPEN                (MM_ERROR_MGR_CLASS | 0xD)              /**< Fail to open camera device */
-#define MM_ERROR_MGR_CAMERA_DEVICE_IO                  (MM_ERROR_MGR_CLASS | 0xE)              /**< Fail to control camera device */
-#define MM_ERROR_MGR_CAMERA_NOT_SUPPORTED              (MM_ERROR_MGR_CLASS | 0xF)              /**< Not supported by camera device */
-#define MM_ERROR_MGR_CAMERA_RESPONSE_TIMEOUT           (MM_ERROR_MGR_CLASS | 0x11)             /**< Not responsed in time */
-#define MM_ERROR_MGR_CAMERA_INTERNAL                   (MM_ERROR_MGR_CLASS | 0x12)             /**< Camera internal error */
-#define MM_ERROR_MGR_CAMERA_INVALID_CONDITION          (MM_ERROR_MGR_CLASS | 0x13)             /**< Invalid pre-condition */
-#define MM_ERROR_MGR_MGR_IN_STATE_TRANSITION           (MM_ERROR_MGR_CLASS | 0x14)             /**< State transition from one state to another */
-#define MM_ERROR_MGR_RESPONSE_TIMEOUT                  (MM_ERROR_MGR_CLASS | 0x16)             /**< Response timeout error */
-
-
-/*
         MM_ERROR_POLICY_CLASS
  */
 #define MM_ERROR_POLICY_BLOCKED                        (MM_ERROR_POLICY_CLASS | 0x01)          /**< Blocked by Audio system policy */
        @}
 */
 
-/*
-        MM_ERROR_RESOURCE_CLASS
- */
-#define MM_ERROR_RESOURCE_NOT_INITIALIZED                      (MM_ERROR_RESOURCE_CLASS | 0x01)                /**< Not initialized */
-#define MM_ERROR_RESOURCE_INTERNAL                             (MM_ERROR_RESOURCE_CLASS | 0x02)                /**< Internal errors */
-#define MM_ERROR_RESOURCE_INVALID_STATE                                (MM_ERROR_RESOURCE_CLASS | 0x03)                /**< Invalid state */
-
-
 #ifdef __cplusplus
        }
 #endif
index c3e7e53..1f12596 100644 (file)
@@ -1,6 +1,6 @@
 Name:       libmm-common
 Summary:    Multimedia Framework Common Lib
-Version:    0.2.89
+Version:    0.2.90
 Release:    0
 Group:      Multimedia/Libraries
 License:    Apache-2.0