virtual: support tdm_client output_set_mode
[platform/core/uifw/libtdm.git] / src / tdm_private_types.h
index 743367b..0ef71bd 100644 (file)
@@ -112,6 +112,7 @@ typedef struct _tdm_private_output_destroy_handler tdm_private_output_destroy_ha
 typedef struct _tdm_private_output_change_handler tdm_private_output_change_handler;
 typedef struct _tdm_private_output_commit_handler tdm_private_output_commit_handler;
 typedef struct _tdm_private_output_vblank_handler tdm_private_output_vblank_handler;
+typedef struct _tdm_private_output_mode_change_handler tdm_private_output_mode_change_handler;
 typedef struct _tdm_private_layer_commit_handler tdm_private_layer_commit_handler;
 typedef struct _tdm_private_hwc_commit_handler tdm_private_hwc_commit_handler;
 
@@ -236,6 +237,7 @@ struct _tdm_private_output {
 
        /* virtual */
        char name[TDM_NAME_LEN];
+       struct list_head mode_change_request_handler_list;
 };
 
 struct _tdm_private_layer {
@@ -437,6 +439,14 @@ struct _tdm_private_output_commit_handler {
        pid_t owner_tid;
 };
 
+struct _tdm_private_output_mode_change_handler {
+       struct list_head link;
+
+       tdm_private_output *private_output;
+       tdm_output_mode_change_request_handler func;
+       void *user_data;
+};
+
 struct _tdm_private_hwc_commit_handler {
        struct list_head link;