define the backend ABI version
[platform/core/uifw/libtdm.git] / include / tdm_backend.h
index f4de1a6..e9fc70d 100644 (file)
@@ -1134,6 +1134,11 @@ typedef tdm_error (*tdm_event_loop_timer_handler)(void *user_data);
        (((major) << 16) & TDM_BACKEND_MAJOR_VERSION_MASK) | \
        ((minor) & TDM_BACKEND_MINOR_VERSION_MASK)
 
+
+#define TDM_BACKEND_ABI_VERSION_1_0 TDM_BACKEND_SET_ABI_VERSION(1, 0)
+#define TDM_BACKEND_ABI_VERSION_2_0 TDM_BACKEND_SET_ABI_VERSION(2, 0)
+#define TDM_BACKEND_ABI_LATEST_VERSION TDM_BACKEND_ABI_VERSION_2_0 /**< the latest version of the tdm backend abi  */
+
 /**
  * @brief
  * This MACRO is deprecated since 1.2.0. Use TDM_BACKEND_SET_ABI_VERSION instead of this.
@@ -1220,7 +1225,7 @@ tdm_backend_register_func_layer(tdm_display *dpy, tdm_func_layer *func_layer);
  * @since 2.0.0
  */
 tdm_error
-tdm_backend_register_func_hwc(tdm_display *dpy, tdm_func_hwc *func_hwc)
+tdm_backend_register_func_hwc(tdm_display *dpy, tdm_func_hwc *func_hwc);
 
 /**
  * @brief Register the backend hwc_window functions to a display