1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69
|
/* idn_cmd.h */
/* File autogenerated by gengetopt version 2.16 */
#ifndef IDN_CMD_H
#define IDN_CMD_H
/* If we use autoconf. */
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#ifdef __cplusplus
extern "C" {
#endif /* __cplusplus */
#ifndef CMDLINE_PARSER_PACKAGE
#define CMDLINE_PARSER_PACKAGE PACKAGE
#endif
#ifndef CMDLINE_PARSER_VERSION
#define CMDLINE_PARSER_VERSION VERSION
#endif
struct gengetopt_args_info
{
int allow_unassigned_flag; /* Toggle IDNA AllowUnassigned flag (default=off). */
int usestd3asciirules_flag; /* Toggle IDNA UseSTD3ASCIIRules flag (default=off). */
int tld_flag; /* Check string for TLD specific rules\nOnly for --idna-to-ascii and --idna-to-unicode (default=on). */
char * profile_arg; /* Use specified stringprep profile instead\nValid stringprep profiles are `Nameprep', `iSCSI', `Nodeprep', `Resourceprep', `trace', and `SASLprep'.. */
char * profile_orig; /* Use specified stringprep profile instead\nValid stringprep profiles are `Nameprep', `iSCSI', `Nodeprep', `Resourceprep', `trace', and `SASLprep'. original value given at command line. */
int debug_flag; /* Print debugging information (default=off). */
int quiet_flag; /* Silent operation (default=off). */
int help_given ; /* Whether help was given. */
int version_given ; /* Whether version was given. */
int stringprep_given ; /* Whether stringprep was given. */
int punycode_decode_given ; /* Whether punycode-decode was given. */
int punycode_encode_given ; /* Whether punycode-encode was given. */
int idna_to_ascii_given ; /* Whether idna-to-ascii was given. */
int idna_to_unicode_given ; /* Whether idna-to-unicode was given. */
int allow_unassigned_given ; /* Whether allow-unassigned was given. */
int usestd3asciirules_given ; /* Whether usestd3asciirules was given. */
int tld_given ; /* Whether tld was given. */
int profile_given ; /* Whether profile was given. */
int debug_given ; /* Whether debug was given. */
int quiet_given ; /* Whether quiet was given. */
char **inputs ; /* unamed options */
unsigned inputs_num ; /* unamed options number */
} ;
int cmdline_parser (int argc, char * const *argv, struct gengetopt_args_info *args_info);
int cmdline_parser2 (int argc, char * const *argv, struct gengetopt_args_info *args_info, int override, int initialize, int check_required);
int cmdline_parser_file_save(const char *filename, struct gengetopt_args_info *args_info);
void cmdline_parser_print_help(void);
void cmdline_parser_print_version(void);
void cmdline_parser_init (struct gengetopt_args_info *args_info);
void cmdline_parser_free (struct gengetopt_args_info *args_info);
int cmdline_parser_required (struct gengetopt_args_info *args_info, const char *prog_name);
#ifdef __cplusplus
}
#endif /* __cplusplus */
#endif /* IDN_CMD_H */
|