/*#*
*#* $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 */
*/
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.
};
/**
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