controller_load.h 2.18 KB
Newer Older
Jeroen Vreeken's avatar
Jeroen Vreeken committed
1
/*
2
3
	Copyright Jeroen Vreeken (pe1rxq@amsat.org), 2009, 2013
	Copyright Stichting C.A. Muller Radioastronomiestation, 2009, 2013
Jeroen Vreeken's avatar
Jeroen Vreeken committed
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24

	This program is free software: you can redistribute it and/or modify
	it under the terms of the GNU General Public License as published by
	the Free Software Foundation, either version 3 of the License, or
	(at your option) any later version.

	This program is distributed in the hope that it will be useful,
	but WITHOUT ANY WARRANTY; without even the implied warranty of
	MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
	GNU General Public License for more details.

	You should have received a copy of the GNU General Public License
	along with this program.  If not, see <http://www.gnu.org/licenses/>.

 */

#ifndef _INCLUDE_CONTROLLER_LOAD_H_
#define _INCLUDE_CONTROLLER_LOAD_H_

#include <stdarg.h>

25

26
27
28
29
#ifndef YY_TYPEDEF_YY_SCANNER_T
#define YY_TYPEDEF_YY_SCANNER_T
typedef void* yyscan_t;
#endif
30

Jeroen Vreeken's avatar
Jeroen Vreeken committed
31
32
33
34
int controller_load_shell_add(void);

int controller_load(char *filename);

35
int controller_load_yy_input(char *buf, int *readbytes, int sizebytes, yyscan_t scanner);
36
void controller_load_fatal_error (char* msg , yyscan_t yyscanner);
Jeroen Vreeken's avatar
Jeroen Vreeken committed
37

38
39
40
41
42
43
44
45
void controller_load_var_add_str(char *string, yyscan_t scanner);
void controller_load_var_add_dbl(double dbl, yyscan_t scanner);
void controller_load_var_add_flt(float flt, yyscan_t scanner);
void controller_load_var_add_ul(unsigned long ul, yyscan_t scanner);
void controller_load_var_add_int(int i, yyscan_t scanner);
void controller_load_var_clear(yyscan_t scanner);
void controller_load_var_add_float_array_start(yyscan_t scanner);
void controller_load_var_add_float_array_end(yyscan_t scanner);
Jeroen Vreeken's avatar
Jeroen Vreeken committed
46
void controller_load_frequency(double frequency);
47
48
49
50
51
52
int controller_load_include(char *file_name);

double controller_load_variable_double_get(char *varname);
void controller_load_variable_double_set(char *varname, double val);
char * controller_load_variable_string_get(char *varname);
void controller_load_variable_string_set(char *varname, char *val);
Jeroen Vreeken's avatar
Jeroen Vreeken committed
53

54
55
int controller_load_block_create(char *type, char *name, yyscan_t scanner);
int controller_load_block_param_set(char *block, char *param, yyscan_t scanner);
Jeroen Vreeken's avatar
Jeroen Vreeken committed
56
57

#endif /* _INCLUDE_CONTROLLER_LOAD_H_ */