Add the parser for the top-level configuration

This commit is contained in:
Eric Tang
2017-07-09 10:35:52 -07:00
parent bbdb09b5f5
commit ec5f774944
5 changed files with 74 additions and 13 deletions
+24
View File
@@ -0,0 +1,24 @@
#ifndef __PARSE_CONFIG_H__
#define __PARSE_CONFIG_H__
// Includes:
#include "config_state.h"
// Typedefs:
typedef enum {
ParserError_Success,
ParserError_InvalidSerializedKeystrokeType,
ParserError_InvalidSerializedMouseAction,
ParserError_InvalidSerializedKeyActionType,
ParserError_InvalidLayerCount,
ParserError_InvalidModuleCount,
ParserError_InvalidActionCount,
} parser_error_t;
// Functions:
parser_error_t ParseConfig(serialized_buffer_t *buffer);
#endif