X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=mware%2Fparser.h;h=b4e2f61d4382543553b5a6689c6d5d9c6987f773;hb=33d48af0258dd55e1d2b51a4ae2f87401dcb00e9;hp=9ad6567d74db8d9c6bed625886714ad1b8714402;hpb=304ab6d368e046801f9c6bab326bbb27f78cb875;p=bertos.git diff --git a/mware/parser.h b/mware/parser.h old mode 100755 new mode 100644 index 9ad6567d..b4e2f61d --- a/mware/parser.h +++ b/mware/parser.h @@ -1,7 +1,34 @@ /** * \file + * * * \version $Id$ * @@ -12,15 +39,6 @@ * \brief serial protocol parser and commands. */ -/*#* - *#* $Log$ - *#* Revision 1.2 2006/06/12 21:37:02 marco - *#* implemented some commands (ver and sleep) - *#* - *#* Revision 1.1 2006/06/01 12:27:39 marco - *#* Added utilities for protocols - *#* - *#*/ #ifndef PARSER_H #define PARSER_H @@ -35,10 +53,10 @@ */ typedef enum { - RC_ERROR = -1, //!< Reply with error. - RC_OK = 0, //!< No reply (ignore reply arguments). - RC_REPLY = 1, //!< Reply command arguments. - RC_SKIP = 2 //!< Skip following commands + RC_ERROR = -1, ///< Reply with error. + RC_OK = 0, ///< No reply (ignore reply arguments). + RC_REPLY = 1, ///< Reply command arguments. + RC_SKIP = 2 ///< Skip following commands } ResultCode; /** union that contains parameters passed to and from commands */ @@ -108,7 +126,7 @@ const char* parser_rl_match(void* dummy, const char* word, int word_len); bool parser_process_line(const char* line); -/*! +/** * Execute a command with its arguments, and fetch its results. * * \param templ Template of the command to be executed