summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSangchul Lee <sc11.lee@samsung.com>2015-10-29 20:41:27 +0900
committerSangchul Lee <sc11.lee@samsung.com>2015-10-29 21:13:28 +0900
commit3e1c984c0c2f2e4be9572c5214daa660c13e2d09 (patch)
tree9e6769670f68d602804ac2419f4b56d94c1d04c4
parent11632f60d366fa0aea6b7c794d468050e155aa5e (diff)
downloadlibmm-common-3e1c984c0c2f2e4be9572c5214daa660c13e2d09.tar.gz
libmm-common-3e1c984c0c2f2e4be9572c5214daa660c13e2d09.tar.bz2
libmm-common-3e1c984c0c2f2e4be9572c5214daa660c13e2d09.zip
[Version] Release 0.2.90 [Profile] Common [Issue Type] code clean-up Change-Id: I64ff6bc319ca590f162c717c09d043bc342c3d55
-rwxr-xr-xinclude/mm_error.h56
-rw-r--r--packaging/libmm-common.spec2
2 files changed, 16 insertions, 42 deletions
diff --git a/include/mm_error.h b/include/mm_error.h
index eef4562..d30776f 100755
--- a/include/mm_error.h
+++ b/include/mm_error.h
@@ -45,19 +45,17 @@
#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
@@ -122,7 +120,7 @@
/*
- 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 */
@@ -220,6 +218,15 @@
#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
*/
@@ -343,38 +350,13 @@
#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 */
@@ -388,14 +370,6 @@
@}
*/
-/*
- 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
diff --git a/packaging/libmm-common.spec b/packaging/libmm-common.spec
index c3e7e53..1f12596 100644
--- a/packaging/libmm-common.spec
+++ b/packaging/libmm-common.spec
@@ -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