Initialize Tizen 2.3
[apps/livebox/livebox-viewer.git] / src / conf.c
1 #include <stdio.h>
2
3 static struct info {
4         int manual_sync;
5         int frame_drop_for_resizing;
6         int shared_content;
7
8         double event_filter;
9 } s_info = {
10         .manual_sync = 0,
11         .frame_drop_for_resizing = 1,
12         .shared_content = 0,
13
14         .event_filter = 0.01f,
15 };
16
17 void conf_set_manual_sync(int flag)
18 {
19         s_info.manual_sync = flag;
20 }
21
22 int conf_manual_sync(void)
23 {
24         return s_info.manual_sync;
25 }
26
27 void conf_set_frame_drop_for_resizing(int flag)
28 {
29         s_info.frame_drop_for_resizing = flag;
30 }
31
32 int conf_frame_drop_for_resizing(void)
33 {
34         return s_info.frame_drop_for_resizing;
35 }
36
37 void conf_set_shared_content(int flag)
38 {
39         s_info.shared_content = flag;
40 }
41
42 int conf_shared_content(void)
43 {
44         return s_info.shared_content;
45 }
46
47 double conf_event_filter(void)
48 {
49         return s_info.event_filter;
50 }
51
52 void conf_set_event_filter(double filter)
53 {
54         s_info.event_filter = filter;
55 }
56
57 /* End of a file */