projects
/
bertos.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Use the http module.
[bertos.git]
/
bertos
/
mware
/
parser.c
diff --git
a/bertos/mware/parser.c
b/bertos/mware/parser.c
index 5bfba1c1a3fe7b00cc8100300b971851e17762c9..71aec30dc980f58d1c4b1ada8060224c96878e7c 100644
(file)
--- a/
bertos/mware/parser.c
+++ b/
bertos/mware/parser.c
@@
-55,6
+55,8
@@
#include "parser.h"
#include "parser.h"
+#include "cfg/cfg_parser.h"
+
#include <io/kfile.h>
#include <struct/hashtable.h>
#include <io/kfile.h>
#include <struct/hashtable.h>
@@
-307,10
+309,11
@@
bool parser_process_line(const char* input)
* Register a new command into the parser
*
* \param cmd Command template describing the command
* Register a new command into the parser
*
* \param cmd Command template describing the command
+ * \return true if registration was successful, false otherwise
*/
*/
-
void
parser_register_cmd(const struct CmdTemplate* cmd)
+
bool
parser_register_cmd(const struct CmdTemplate* cmd)
{
{
- ht_insert(&commands, cmd);
+
return
ht_insert(&commands, cmd);
}
void parser_init(void)
}
void parser_init(void)