};
/**
- * @brief Definition for the device type to get the default handle
+ * @brief Definition for the device type to access tbm_bo
* @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
*/
-#define TBM_DEVICE_DEFAULT 0
-/**
- * @brief Definition for the device type to get the virtual memory
- * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
- */
-#define TBM_DEVICE_CPU 1
-/**
- * @brief Definition for the device type to get the 2D memory handle
- * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
- */
-#define TBM_DEVICE_2D 2
-/**
- * @brief Definition for the device type to get the 3D memory handle
- * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
- */
-#define TBM_DEVICE_3D 3
-/**
- * @brief Definition for the device type to get the multimedia handle
- * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
- */
-#define TBM_DEVICE_MM 4
+typedef enum {
+ TBM_DEVICE_DEFAULT = 0, /**< the device type to get the default handle */
+ TBM_DEVICE_CPU, /**< the device type to get the virtual memory */
+ TBM_DEVICE_2D, /**< the device type to get the 2D memory handle */
+ TBM_DEVICE_3D, /**< the device type to get the 3D memory handle */
+ TBM_DEVICE_MM, /**< the device type to get the the multimedia handle */
-/* TBM_OPTION */
+} tbm_bo_device_type;
/**
- * @brief Definition for the access option to read
- * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
- */
-#define TBM_OPTION_READ (1 << 0)
-/**
- * @brief Definition for the access option to write
+ * @brief Definition for the optoin to access tbm_bo
* @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
*/
-#define TBM_OPTION_WRITE (1 << 1)
-/**
- * @brief Definition for the vendor specific option that depends on the backend
- * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
- */
-#define TBM_OPTION_VENDOR (0xffff0000)
-
-
+typedef enum {
+ TBM_OPTION_NONE = (1 << 0), /**< the option is none */
+ TBM_OPTION_READ = (1 << 0), /**< the option to access to read the bo */
+ TBM_OPTION_WRITE = (1 << 1), /**< the option to access to write the bo */
+ TBM_OPTION_VENDOR = (0xffff0000), /**< the the vendor specific option that depends on the backend */
+} tbm_bo_access_option;
/**
* @brief tbm_bo_handle abstraction of the memory handle by TBM_DEVICE_TYPE