tizen 2.3 release
[apps/livebox/livebox-viewer.git] / dynamicbox_viewer / src / conf.c
1 #include <stdio.h>
2 #include <dynamicbox_errno.h>
3
4 static struct info {
5     int manual_sync;
6     int frame_drop_for_resizing;
7     int shared_content;
8     int direct_update;
9     int extra_buffer_count;
10
11     double event_filter;
12 } s_info = {
13     .manual_sync = 0,
14     .frame_drop_for_resizing = 1,
15     .shared_content = 0,
16     .direct_update = 0,
17     .extra_buffer_count = 0,
18
19     .event_filter = 0.01f,
20 };
21
22 void conf_set_direct_update(int flag)
23 {
24     s_info.direct_update = flag;
25 }
26
27 int conf_direct_update(void)
28 {
29     return s_info.direct_update;
30 }
31
32 void conf_set_manual_sync(int flag)
33 {
34     s_info.manual_sync = flag;
35 }
36
37 int conf_manual_sync(void)
38 {
39     return s_info.manual_sync;
40 }
41
42 void conf_set_frame_drop_for_resizing(int flag)
43 {
44     s_info.frame_drop_for_resizing = flag;
45 }
46
47 int conf_frame_drop_for_resizing(void)
48 {
49     return s_info.frame_drop_for_resizing;
50 }
51
52 void conf_set_shared_content(int flag)
53 {
54     s_info.shared_content = flag;
55 }
56
57 int conf_shared_content(void)
58 {
59     return s_info.shared_content;
60 }
61
62 double conf_event_filter(void)
63 {
64     return s_info.event_filter;
65 }
66
67 void conf_set_event_filter(double filter)
68 {
69     s_info.event_filter = filter;
70 }
71
72 void conf_set_extra_buffer_count(int buffer_count)
73 {
74     s_info.extra_buffer_count = buffer_count;
75 }
76
77 int conf_extra_buffer_count(void)
78 {
79     return s_info.extra_buffer_count;
80 }
81
82 /* End of a file */