2013-10-04 14:41:00 +10:00
|
|
|
/*!
|
|
|
|
* @file args.h
|
|
|
|
* @brief Definitions for argument parsing functionality.
|
|
|
|
*/
|
2012-11-19 16:46:07 -06:00
|
|
|
#ifndef _METERPRETER_LIB_ARGS_H
|
|
|
|
#define _METERPRETER_LIB_ARGS_H
|
|
|
|
|
|
|
|
#include "linkage.h"
|
|
|
|
|
2013-10-04 18:03:35 +10:00
|
|
|
/*! @brief State container for \c args_parse calls. */
|
|
|
|
typedef struct
|
2012-11-19 16:46:07 -06:00
|
|
|
{
|
2013-10-04 18:03:35 +10:00
|
|
|
DWORD currentIndex; ///< The index of the argument being parsed.
|
|
|
|
PCHAR argument; ///< Pointer to the current switch's argument.
|
|
|
|
CHAR toggle; ///< Indicates of this parameter is a toggle parameter.
|
2012-11-19 16:46:07 -06:00
|
|
|
} ArgumentContext;
|
|
|
|
|
|
|
|
LINKAGE DWORD args_parse(UINT argc, CHAR **argv, PCHAR params,
|
|
|
|
ArgumentContext *ctx);
|
|
|
|
|
|
|
|
#endif
|