summaryrefslogtreecommitdiff
path: root/parser.h
diff options
context:
space:
mode:
authorroot <root@fedora-arm.domain.avtechpulse.com>1999-12-31 19:50:00 -0500
committerroot <root@fedora-arm.domain.avtechpulse.com>1999-12-31 19:50:00 -0500
commit80b991816acb29e645fa7e047325942f8f050861 (patch)
treed44958d923a3578eaa13bb4432648889b08909a4 /parser.h
parent3702b14f594c86af91e063e8b1403e7bfd982bfe (diff)
add new files
Diffstat (limited to 'parser.h')
-rw-r--r--parser.h34
1 files changed, 34 insertions, 0 deletions
diff --git a/parser.h b/parser.h
new file mode 100644
index 0000000..3fef423
--- /dev/null
+++ b/parser.h
@@ -0,0 +1,34 @@
+#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
+
+/* general formatting */
+#define remote_digits_after_decimal 4 /* how many digits are returned after decimal by query commands */
+
+#define NORMAL_ZERO 0
+#define ALLOW_NEG_ZERO 1
+
+#define USE_ON_OFF 0
+#define NO_ON_OFF 1
+
+void Parser_main (char *in, gchar** response, int allow_unrequested_responses, int* errors);
+
+#endif \ No newline at end of file