Annotate a refresh variable
[platform/core/uifw/libds-tizen.git] / include / libds / output.h
1 #ifndef LIBDS_OUTPUT_H
2 #define LIBDS_OUTPUT_H
3
4 #include <time.h>
5 #include <libds/buffer.h>
6
7 #ifdef __cplusplus
8 extern "C" {
9 #endif
10
11 struct ds_output;
12
13 struct ds_output_mode {
14     int32_t width, height;
15     int32_t refresh; // mHz
16     bool preferred;
17     struct wl_list link;
18 };
19
20 void
21 ds_output_destroy(struct ds_output *output);
22
23 bool
24 ds_output_commit(struct ds_output *output);
25
26 void
27 ds_output_attach_buffer(struct ds_output *output, struct ds_buffer *buffer);
28
29 const struct ds_output_mode *
30 ds_output_preferred_mode(struct ds_output *output);
31
32 void
33 ds_output_set_mode(struct ds_output *output,
34         const struct ds_output_mode *mode);
35
36 void
37 ds_output_add_destroy_listener(struct ds_output *output,
38         struct wl_listener *listener);
39
40 void
41 ds_output_add_frame_listener(struct ds_output *output,
42         struct wl_listener *listener);
43
44 void
45 ds_output_add_commit_listener(struct ds_output *output,
46         struct wl_listener *listener);
47
48 #ifdef __cplusplus
49 }
50 #endif
51
52 #endif