*/
const struct GNUNET_GETOPT_CommandLineOption *allOptions;
- /**
- * For configuration
- */
- struct GNUNET_CONFIGURATION_Handle *cfg;
-
/**
* Original command line
*/
{
/**
- * Short name of the option (use '\0' for none).
+ * Short name of the option (use '\\0' for none).
*/
const char shortName;
/**
* Parse the command line.
*
- * @param binaryName name of the binary / application with options
- * @param cfg for storing/accessing configuration data
+ * @param binaryOptions Name of application with option summary
* @param allOptions defined options and handlers
* @param argc number of arguments
* @param argv actual arguments
* @return index into argv with first non-option
* argument, or GNUNET_SYSERR on error
*/
-int GNUNET_GETOPT_run (const char *binaryName,
- struct GNUNET_CONFIGURATION_Handle *cfg,
+int GNUNET_GETOPT_run (const char *binaryOptions,
const struct GNUNET_GETOPT_CommandLineOption
*allOptions, unsigned int argc, char *const *argv);
+/**
+ * FIXME
+ */
int GNUNET_GETOPT_set_ulong (struct GNUNET_GETOPT_CommandLineProcessorContext
*ctx, void *scls, const char *option,
const char *value);
+/**
+ * FIXME
+ */
int GNUNET_GETOPT_set_uint (struct GNUNET_GETOPT_CommandLineProcessorContext
*ctx, void *scls, const char *option,
const char *value);
+/**
+ * FIXME
+ */
int GNUNET_GETOPT_set_one (struct GNUNET_GETOPT_CommandLineProcessorContext
*ctx, void *scls, const char *option,
const char *value);
+/**
+ * FIXME
+ */
int GNUNET_GETOPT_set_string (struct GNUNET_GETOPT_CommandLineProcessorContext
*ctx, void *scls, const char *option,
const char *value);
+/**
+ * FIXME
+ */
int
GNUNET_GETOPT_increment_value (struct
GNUNET_GETOPT_CommandLineProcessorContext *ctx,
/* *************** internal prototypes - use macros above! ************* */
+/**
+ * FIXME
+ */
int GNUNET_GETOPT_format_help_ (struct
GNUNET_GETOPT_CommandLineProcessorContext
*ctx, void *scls, const char *option,
const char *value);
+/**
+ * FIXME
+ */
int GNUNET_GETOPT_print_version_ (struct
GNUNET_GETOPT_CommandLineProcessorContext
*ctx, void *scls, const char *option,