summaryrefslogtreecommitdiff
path: root/src/conf.c
blob: 1c1f898284d3d309b60e86fabc2d79c73a758c02 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
#include <stdio.h>

static struct info {
	int manual_sync;
	int frame_drop_for_resizing;
	int shared_content;

	double event_filter;
} s_info = {
	.manual_sync = 0,
	.frame_drop_for_resizing = 1,
	.shared_content = 0,

	.event_filter = 0.01f,
};

void conf_set_manual_sync(int flag)
{
	s_info.manual_sync = flag;
}

int conf_manual_sync(void)
{
	return s_info.manual_sync;
}

void conf_set_frame_drop_for_resizing(int flag)
{
	s_info.frame_drop_for_resizing = flag;
}

int conf_frame_drop_for_resizing(void)
{
	return s_info.frame_drop_for_resizing;
}

void conf_set_shared_content(int flag)
{
	s_info.shared_content = flag;
}

int conf_shared_content(void)
{
	return s_info.shared_content;
}

double conf_event_filter(void)
{
	return s_info.event_filter;
}

void conf_set_event_filter(double filter)
{
	s_info.event_filter = filter;
}

/* End of a file */