summaryrefslogtreecommitdiffstats
path: root/runtime/parser.h
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/parser.h')
-rw-r--r--runtime/parser.h18
1 files changed, 16 insertions, 2 deletions
diff --git a/runtime/parser.h b/runtime/parser.h
index cec9c083..d5d9243d 100644
--- a/runtime/parser.h
+++ b/runtime/parser.h
@@ -24,7 +24,21 @@
#ifndef INCLUDED_PARSE_H
#define INCLUDED_PARSE_H
-extern rsRetVal parserClassInit(void);
-extern rsRetVal parseMsg(msg_t*);
+/* the parser object, a dummy because we have only static methods */
+typedef struct parser_s {
+ BEGINobjInstance; /* Data to implement generic object - MUST be the first data element! */
+} parser_t;
+
+/* interfaces */
+BEGINinterface(parser) /* name must also be changed in ENDinterface macro! */
+ INTERFACEObjDebugPrint(var);
+ rsRetVal (*ParseMsg)(msg_t *pMsg);
+ENDinterface(parser)
+#define parserCURR_IF_VERSION 1 /* increment whenever you change the interface above! */
+
+
+/* prototypes */
+PROTOTYPEObj(parser);
+
#endif /* #ifndef INCLUDED_PARSE_H */