summaryrefslogtreecommitdiff
path: root/parser.h
blob: fbc8193c7d6fee9ee96848f4b4bef5f2aeeabaea (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
#ifndef PARSER_H_
#define PARSER_H_

#include <string.h>
#include <ctype.h>
#include <stdlib.h>
#include <glib.h>
#include <math.h>

#include "globals.h"
#include "string_utils.h"
#include "dummy_functions.h"
#include "device-functions.h"

/* types of input commands that can be parsed */

#define command_simple 0
#define command_withparam 2
#define command_param_units 3
#define query_simple 4
#define query_param 6

#define NORMAL_ZERO 0
#define ALLOW_NEG_ZERO 1

#define USE_ON_OFF 0
#define NO_ON_OFF 1

void Parser_main (char *in, int interactive_terminal, void(*cbfunc)(gpointer, gchar *), gpointer user_data);

#endif