Adding errors and message types for streamrecorder 68/53368/3 accepted/tizen/mobile/20151208.125413 accepted/tizen/tv/20151208.125424 accepted/tizen/wearable/20151208.125446 submit/tizen/20151208.043238
authorsahil bansal <sahil.bansal@samsung.com>
Fri, 4 Dec 2015 08:14:12 +0000 (13:44 +0530)
committersahil bansal <sahil.bansal@samsung.com>
Fri, 4 Dec 2015 09:13:20 +0000 (14:43 +0530)
[Version] Release 0.2.93
[Profile] Common
[Issue Type] added new enumeration

Change-Id: I1e8caa0c97bb19a76ad57927873dcecb002a11df

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

index 25f7304..84881fc 100755 (executable)
 /*
        MM_ERROR_STREAMRECORDER_CLASS
 */
-#define MM_ERROR_STREAMRECORDER_DEVICE                     (MM_ERROR_STREAMRECORDER_CLASS | 0x01)              /**< General error of streamrecorder device */
+#define MM_ERROR_STREAMRECORDER_DEVICE                 (MM_ERROR_STREAMRECORDER_CLASS | 0x01)          /**< General error of streamrecorder device */
 
-#define MM_ERROR_STREAMRECORDER_GST_CORE                       (MM_ERROR_STREAMRECORDER_CLASS | 0x0a)          /**< Gst Core error */
-#define MM_ERROR_STREAMRECORDER_GST_LIBRARY                    (MM_ERROR_STREAMRECORDER_CLASS | 0x0b)          /**< Gst library error */
-#define MM_ERROR_STREAMRECORDER_GST_RESOURCE                   (MM_ERROR_STREAMRECORDER_CLASS | 0x0c)          /**< Gst resource error */
-#define MM_ERROR_STREAMRECORDER_GST_STREAM                     (MM_ERROR_STREAMRECORDER_CLASS | 0x0d)          /**< Gst stream error */
+#define MM_ERROR_STREAMRECORDER_GST_CORE               (MM_ERROR_STREAMRECORDER_CLASS | 0x0a)          /**< Gst Core error */
+#define MM_ERROR_STREAMRECORDER_GST_LIBRARY            (MM_ERROR_STREAMRECORDER_CLASS | 0x0b)          /**< Gst library error */
+#define MM_ERROR_STREAMRECORDER_GST_RESOURCE           (MM_ERROR_STREAMRECORDER_CLASS | 0x0c)          /**< Gst resource error */
+#define MM_ERROR_STREAMRECORDER_GST_STREAM             (MM_ERROR_STREAMRECORDER_CLASS | 0x0d)          /**< Gst stream error */
 #define MM_ERROR_STREAMRECORDER_GST_STATECHANGE                (MM_ERROR_STREAMRECORDER_CLASS | 0x0e)          /**< Gst state change failed */
 #define MM_ERROR_STREAMRECORDER_GST_NEGOTIATION                (MM_ERROR_STREAMRECORDER_CLASS | 0x0f)          /**< Gst negotiation failed */
-#define MM_ERROR_STREAMRECORDER_GST_LINK                       (MM_ERROR_STREAMRECORDER_CLASS | 0x10)          /**< Gst linking failed */
+#define MM_ERROR_STREAMRECORDER_GST_LINK               (MM_ERROR_STREAMRECORDER_CLASS | 0x10)          /**< Gst linking failed */
 #define MM_ERROR_STREAMRECORDER_GST_FLOW_ERROR         (MM_ERROR_STREAMRECORDER_CLASS | 0x11)          /**< Gst linking failed */
 
 #define MM_ERROR_STREAMRECORDER_ENCODER                        (MM_ERROR_STREAMRECORDER_CLASS | 0x12)          /**< General error of Encoder */
 #define MM_ERROR_STREAMRECORDER_ENCODER_BUFFER         (MM_ERROR_STREAMRECORDER_CLASS | 0x13)          /**< Encoder buffer error */
-#define MM_ERROR_STREAMRECORDER_ENCODER_WRONG_TYPE             (MM_ERROR_STREAMRECORDER_CLASS | 0x14)          /**< Encoder wrong type (format or param) */
+#define MM_ERROR_STREAMRECORDER_ENCODER_WRONG_TYPE     (MM_ERROR_STREAMRECORDER_CLASS | 0x14)          /**< Encoder wrong type (format or param) */
 #define MM_ERROR_STREAMRECORDER_ENCODER_WORKING                (MM_ERROR_STREAMRECORDER_CLASS | 0x15)          /**< Encoding fail */
 
-#define MM_ERROR_STREAMRECORDER_INVALID_CONDITION              (MM_ERROR_STREAMRECORDER_CLASS | 0x16)          /**< Invalid pre-condition */
+#define MM_ERROR_STREAMRECORDER_INVALID_CONDITION      (MM_ERROR_STREAMRECORDER_CLASS | 0x16)          /**< Invalid pre-condition */
 
-#define MM_ERROR_STREAMRECORDER_INVALID_ARGUMENT               (MM_ERROR_STREAMRECORDER_CLASS | 0x18)          /**< Invalid Argument */
+#define MM_ERROR_STREAMRECORDER_INVALID_ARGUMENT       (MM_ERROR_STREAMRECORDER_CLASS | 0x18)          /**< Invalid Argument */
+
+#define MM_ERROR_STREAMRECORDER_INTERNAL               (MM_ERROR_STREAMRECORDER_CLASS | 0x19)          /**< Internal error */
+#define MM_ERROR_STREAMRECORDER_RESPONSE_TIMEOUT       (MM_ERROR_STREAMRECORDER_CLASS | 0x1b)          /**< Not responsed in time */
 
-#define MM_ERROR_STREAMRECORDER_RESPONSE_TIMEOUT               (MM_ERROR_STREAMRECORDER_CLASS | 0x1b)          /**< Not responsed in time */
 #define MM_ERROR_STREAMRECORDER_NOT_INITIALIZED                (MM_ERROR_STREAMRECORDER_CLASS | 0x1c)          /**< Not initialized streamrecorder */
-#define MM_ERROR_STREAMRECORDER_LOW_MEMORY                     (MM_ERROR_STREAMRECORDER_CLASS | 0x1d)          /**< Memory alloc failed */
-#define MM_ERROR_STREAMRECORDER_RESOURCE_CREATION              (MM_ERROR_STREAMRECORDER_CLASS | 0x1e)          /**< Creating resource of streamrecorder failed */
+#define MM_ERROR_STREAMRECORDER_LOW_MEMORY             (MM_ERROR_STREAMRECORDER_CLASS | 0x1d)          /**< Memory alloc failed */
+#define MM_ERROR_STREAMRECORDER_RESOURCE_CREATION      (MM_ERROR_STREAMRECORDER_CLASS | 0x1e)          /**< Creating resource of streamrecorder failed */
 #define MM_ERROR_STREAMRECORDER_CMD_IS_RUNNING         (MM_ERROR_STREAMRECORDER_CLASS | 0x1f)          /**< Command is running now */
 
 #define MM_ERROR_STREAMRECORDER_FILE_SIZE_OVER         (MM_ERROR_STREAMRECORDER_CLASS | 0x23)          /**< File size is greater than max size */
index 089931b..1fae976 100755 (executable)
@@ -132,6 +132,11 @@ enum MMMessageType {
        MM_MESSAGE_STREAMRECORDER_ERROR                         = 0x800,
        MM_MESSAGE_STREAMRECORDER_CONSUME_COMPLETE,
        MM_MESSAGE_STREAMRECORDER_STATE_CHANGED,
+       MM_MESSAGE_STREAMRECORDER_MAX_SIZE,             /**< Maximum size, streamcorder waits for user's order (commit/cancel).*/
+       MM_MESSAGE_STREAMRECORDER_NO_FREE_SPACE,        /**< No free space,streamcorder waits for user's order (commit/cancel).*/
+       MM_MESSAGE_STREAMRECORDER_TIME_LIMIT,           /**< Time limit, streamcorder waits for user's order (commit/cancel)*/
+       MM_MESSAGE_STREAMRECORDER_RECORDING_STATUS,     /**< Recording status. (Elapsed time, total time, file size(KB))*/
+       MM_MESSAGE_STREAMRECORDER_VIDEO_CAPTURED,       /**< Video captured */
 
        MM_MESSAGE_NUM,                                 /**< The number of the messages */
 };
index ad45260..25e023f 100644 (file)
@@ -1,6 +1,6 @@
 Name:       libmm-common
 Summary:    Multimedia Framework Common Lib
-Version:    0.2.92
+Version:    0.2.93
 Release:    0
 Group:      Multimedia/Libraries
 License:    Apache-2.0