Sistema l'errore da me commesso in fase di conversione...
[bertos.git] / mware / parser.h
old mode 100755 (executable)
new mode 100644 (file)
index 34f6a14..22cff8b
 
 /*#*
  *#* $Log$
+ *#* Revision 1.3  2006/07/19 12:56:28  bernie
+ *#* Convert to new Doxygen style.
+ *#*
+ *#* 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
  *#*
  */
 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 */
@@ -57,10 +63,11 @@ typedef ResultCode (*CmdFuncPtr)(parms args_results[]);
  */
 struct CmdTemplate
 {
-       const char *name;          //!< name of command
-       const char *arg_fmt;       //!< format string for the input
-       const char *result_fmt;    //!< format string for the output
-       CmdFuncPtr func;           //!< pointer to the handler function
+       const char *name;          ///< Name of command
+       const char *arg_fmt;       ///< Format string for the input
+       const char *result_fmt;    ///< Format string for the output
+       CmdFuncPtr func;           ///< Pointer to the handler function
+       uint16_t   flags;          ///< Currently unused.
 };
 
 /**
@@ -104,7 +111,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