* 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
#ifndef _TDM_CLIENT_TYPES_H_
#define _TDM_CLIENT_TYPES_H_
+#include "tdm_common.h"
+
+#include <tbm_surface.h>
+
#ifdef __cplusplus
extern "C" {
#endif
* @brief The header file which defines Enumerations and Structures for client.
*/
-#include <tdm_common.h>
-
/**
* @deprecated
*/
*/
typedef void tdm_client_vblank;
+/**
+ * @brief The client output handler
+ * @see #tdm_client_output_add_change_handler, #tdm_client_output_remove_change_handler
+ */
typedef void
(*tdm_client_output_change_handler)(tdm_client_output *output,
tdm_output_change_type type,
/**
* @brief The client vblank handler
- * @see #tdm_client_wait_vblank
+ * @see #tdm_client_vblank_wait
*/
typedef void
(*tdm_client_vblank_handler)(tdm_client_vblank *vblank,
unsigned int tv_usec,
void *user_data);
+/* Virtual Output */
+/* this is a copy of server side's tdm_output_mode */
+typedef struct _tdm_client_output_mode {
+ unsigned int clock;
+ unsigned int hdisplay, hsync_start, hsync_end, htotal, hskew;
+ unsigned int vdisplay, vsync_start, vsync_end, vtotal, vscan;
+ unsigned int vrefresh;
+ unsigned int flags;
+ unsigned int type;
+ char name[TDM_NAME_LEN];
+} tdm_client_output_mode;
+
+typedef void tdm_client_voutput;
+
+typedef void (*tdm_client_voutput_commit_handler)(tdm_client_voutput *voutput,
+ tbm_surface_h buffer,
+ void *user_data);
+/* End of Virtual Output */
#ifdef __cplusplus
}
#endif