summaryrefslogtreecommitdiff
path: root/src/inc/moodycamel_field_stat2.cpp
blob: 4e56fe1b9870117dc1d0487a8838aa9e2cf5e277 (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
58
59
60
/*************************************************************************
	> File Name: moodycamel_field_stat2.cpp
	> Author:
	> Mail:
	> Created Time: 2018年07月03日 星期二 16时48分52秒
 ************************************************************************/

#include<iostream>
#include "field_stat2.h"

using namespace std;

extern "C" screen_stat_handle_t FS_internal_create_handle(void);
extern "C" int FS_internal_set_para(screen_stat_handle_t handle, enum FS_option  type,const void* value,int size);
extern "C" void FS_internal_start(screen_stat_handle_t handle);
extern "C" void FS_internal_stop(screen_stat_handle_t* handle);
extern "C" int FS_internal_register(screen_stat_handle_t handle,enum field_dsp_style_t style,
						 			enum field_calc_algo calc_type,const char* name);
extern "C" int FS_internal_operate(screen_stat_handle_t handle,int id,int column_id,enum field_op op,long long value);

extern "C" int FS_internal_register_ratio(screen_stat_handle_t handle,int numerator_id,int denominator_id,int scaling,
				      		   enum field_dsp_style_t style,enum field_calc_algo calc_type,const char* name);

screen_stat_handle_t FS_internal_create_handle(void)
{
	return FS_create_handle();
}

int FS_internal_set_para(screen_stat_handle_t handle, enum FS_option  type,const void* value,int size)
{
	return FS_set_para(handle, type, value, size);
}

void FS_internal_start(screen_stat_handle_t handle)
{
	FS_start(handle);
}

void FS_internal_stop(screen_stat_handle_t* handle)
{
	FS_stop(handle);
}

int FS_internal_register(screen_stat_handle_t handle,enum field_dsp_style_t style,
						 enum field_calc_algo calc_type,const char* name)
{
	return FS_register(handle, style, calc_type, name);
}

int FS_internal_operate(screen_stat_handle_t handle,int id,int column_id,enum field_op op,long long value)
{
	return FS_operate(handle, id, column_id, op, value);
}

int FS_internal_register_ratio(screen_stat_handle_t handle,int numerator_id,int denominator_id,int scaling,
				      		   enum field_dsp_style_t style,enum field_calc_algo calc_type,const char* name)
{
	return FS_register_ratio(handle, numerator_id, denominator_id, scaling, style, calc_type, name);
}