type: add error types. 65/172365/2
authorSooChan Lim <sc1.lim@samsung.com>
Tue, 13 Mar 2018 06:25:38 +0000 (15:25 +0900)
committerSooChan Lim <sc1.lim@samsung.com>
Wed, 14 Mar 2018 05:31:29 +0000 (14:31 +0900)
add two types which are TBM_ERROR_OUT_OF_MEMORY, TBM_ERROR_INVALID_PARAMETER

Change-Id: I962eb1f1b1efbd03e6f2030bd2535f0d98ba348d

src/tbm_type_int.h

index 0100ea44747bbfd4c3780ee962ebac970d8c69e4..7cf375e754a7286392b220d8a322d0b4368dfa9e 100644 (file)
@@ -83,14 +83,17 @@ typedef void tbm_native_display;
  * @since_tizen 2.4
  */
 typedef enum {
-       TBM_ERROR_NONE = 0,                                             /**< Successful */
-       TBM_BO_ERROR_GET_FD_FAILED = TBM_ERROR_BASE | 0x0101,     /**< failed to get fd failed */
-       TBM_BO_ERROR_HEAP_ALLOC_FAILED = TBM_ERROR_BASE | 0x0102, /**< failed to allocate the heap memory */
+       TBM_ERROR_NONE = 0,                                       /**< Successful */
+       TBM_ERROR_OUT_OF_MEMORY = TBM_ERROR_BASE | 0x0001,        /**< failed to allocate the memory */
+       TBM_ERROR_INVALID_PARAMETER = TBM_ERROR_BASE | 0x0002,    /**< failed to get the valid parameter */
+       TBM_ERROR_OPERATION_FAILED = TBM_ERROR_BASE | 0x0003,     /**< failed to operation */
+       TBM_BO_ERROR_GET_FD_FAILED = TBM_ERROR_BASE | 0x0101,     /**< failed to get fd in bo */
+       TBM_BO_ERROR_HEAP_ALLOC_FAILED = TBM_ERROR_BASE | 0x0102, /**< failed to allocate the heap memory in bo */
        TBM_BO_ERROR_LOAD_MODULE_FAILED = TBM_ERROR_BASE | 0x0103,/**< failed to load module*/
        TBM_BO_ERROR_THREAD_INIT_FAILED = TBM_ERROR_BASE | 0x0104,/**< failed to initialize the pthread */
-       TBM_BO_ERROR_BO_ALLOC_FAILED = TBM_ERROR_BASE | 0x0105,   /**< failed to allocate tbm_bo */
+       TBM_BO_ERROR_BO_ALLOC_FAILED = TBM_ERROR_BASE | 0x0105,   /**< failed to allocate tbm_bo */
        TBM_BO_ERROR_INIT_STATE_FAILED = TBM_ERROR_BASE | 0x0106, /**< failed to initialize the state of tbm_bo */
-       TBM_BO_ERROR_IMPORT_FAILED = TBM_ERROR_BASE | 0x0107,     /**< failed to import the handle of tbm_bo */
+       TBM_BO_ERROR_IMPORT_FAILED = TBM_ERROR_BASE | 0x0107,     /**< failed to import the handle of tbm_bo */
        TBM_BO_ERROR_IMPORT_FD_FAILED = TBM_ERROR_BASE | 0x0108,  /**< failed to import fd of tbm_bo */
        TBM_BO_ERROR_EXPORT_FAILED = TBM_ERROR_BASE | 0x0109,     /**< failed to export the handle of the tbm_bo */
        TBM_BO_ERROR_EXPORT_FD_FAILED = TBM_ERROR_BASE | 0x01010, /**< failed to export fd of tbm_bo */