virtual (client): Added implementation for setting available format.
[platform/core/uifw/libtdm.git] / client / tdm_client.h
index a13bf2a..c0ffeb7 100644 (file)
@@ -429,6 +429,46 @@ tdm_client_vblank_wait_seq(tdm_client_vblank *vblank, unsigned int sequence, tdm
 unsigned int
 tdm_client_vblank_is_waiting(tdm_client_vblank *vblank);
 
+/* Virtual Output */
+#include <tbm_surface.h>
+
+tdm_client_voutput *
+tdm_client_create_voutput(tdm_client *client, const char *name, tdm_error *error);
+
+void
+tdm_client_voutput_destroy(tdm_client_voutput *voutput);
+
+tdm_error
+tdm_client_voutput_set_available_modes(tdm_client_voutput *voutput, const tdm_client_output_mode *modes, int count);
+
+tdm_error
+tdm_client_voutput_set_available_formats(tdm_client_voutput *voutput, const tbm_format *formats, const int count);
+
+tdm_error
+tdm_client_voutput_set_physical_size(tdm_client_voutput *voutput, unsigned int mmWidth, unsigned int mmHeight);
+
+tdm_error
+tdm_client_voutput_add_commit_handler(tdm_client_voutput *voutput, tdm_client_voutput_commit_handler *func);
+
+tdm_error
+tdm_client_voutput_get_committed_tbm_surface(tdm_client_voutput *voutput, tbm_surface_h surface);
+
+tdm_client_output *
+tdm_client_voutput_get_client_output(tdm_client_voutput *voutput, tdm_error *error);
+
+tdm_error
+tdm_client_output_get_available_modes(tdm_client_output *output, tdm_client_output_mode **modes, int *count);
+
+tdm_error
+tdm_client_output_set_mode(tdm_client_output *output, const tdm_client_output_mode *mode);
+
+tdm_error
+tdm_client_output_connect(tdm_client_output *output);
+
+tdm_error
+tdm_client_output_disconnect(tdm_client_output *output);
+/* End of Virtual Output */
+
 #ifdef __cplusplus
 }
 #endif