virtual: define functions and structure for supporting virtual output
[platform/core/uifw/libtdm.git] / src / tdm_macro.h
index acdc9f3..bd7e257 100644 (file)
@@ -9,7 +9,7 @@
  *          Taeheon Kim <th908.kim@samsung.com>,
  *          YoungJun Cho <yj44.cho@samsung.com>,
  *          SooChan Lim <sc1.lim@samsung.com>,
- *          Boram Park <sc1.lim@samsung.com>
+ *          Boram Park <boram1288.park@samsung.com>
  *
  * Permission is hereby granted, free of charge, to any person obtaining a
  * copy of this software and associated documentation files (the
@@ -86,6 +86,7 @@ extern "C" {
 /* common backend names *****************************************************/
 #define TDM_DEFAULT_MODULE        "libtdm-default.so"
 #define TDM_DUMMY_MODULE          "libtdm-dummy.so"
+#define TDM_VIRTUAL_MODULE        "libtdm-virtual.so"
 
 /* dump directory ***********************************************************/
 #define TDM_DUMP_DIR    "/tmp"
@@ -103,6 +104,7 @@ extern "C" {
 #define TDM_OUTPUT_DPMS_VSYNC_IS_OFF(dpms)   ((dpms) & TDM_OUTPUT_DPMS_VSYNC_OFF_MASK)
 
 /* strtostr *****************************************************************/
+/* LCOV_EXCL_START */
 static inline char*
 strtostr(char *buf, int len, char *str, char *delim)
 {
@@ -117,6 +119,7 @@ strtostr(char *buf, int len, char *str, char *delim)
        snprintf(buf, len, "%s", str);
        return str + len - 1;
 }
+/* LCOV_EXCL_STOP */
 
 /* EXTERN, INTERN, DEPRECATED ***********************************************/
 #undef EXTERN
@@ -242,6 +245,9 @@ TDM_TYPE_NAME_FN(value_type)
 
 static struct tdm_type_name tdm_cb_type_names[] = {
        { TDM_THREAD_CB_NONE, "none" },
+       { TDM_THREAD_CB_EXIT, "exit" },
+       { TDM_THREAD_CB_DISPLAY_OUTPUT_CREATE, "output-create" },
+       { TDM_THREAD_CB_OUTPUT_DESTROY, "output-destroy" },
        { TDM_THREAD_CB_OUTPUT_COMMIT, "output-commit" },
        { TDM_THREAD_CB_OUTPUT_VBLANK, "output-vblank" },
        { TDM_THREAD_CB_OUTPUT_STATUS, "output-status" },
@@ -250,7 +256,8 @@ static struct tdm_type_name tdm_cb_type_names[] = {
        { TDM_THREAD_CB_CAPTURE_DONE, "capture-done" },
        { TDM_THREAD_CB_VBLANK_SW, "vblank-sw" },
        { TDM_THREAD_CB_VBLANK_CREATE, "vblank-create" },
-       { TDM_THREAD_CB_NEED_VALIDATE, "need-validate" },
+       { TDM_THREAD_CB_HWC_COMMIT, "hwc-commit" },
+       { TDM_THREAD_CB_VOUTPUT_COMMIT, "voutput-commit" },
 };
 TDM_TYPE_NAME_FN(cb_type)