Added hack to print the parameters correctly in windows.
[gnutls.git] / src / libopts / proto.h
blobae1a110a654b42ed3096fdd4e384a631ca9c44a3
1 /* -*- buffer-read-only: t -*- vi: set ro:
3 * Prototypes for autoopts
4 * Generated Sun May 6 16:21:08 PDT 2012
5 */
6 #ifndef AUTOOPTS_PROTO_H_GUARD
7 #define AUTOOPTS_PROTO_H_GUARD 1
9 #ifndef LOCAL
10 # define LOCAL extern
11 # define REDEF_LOCAL 1
12 #else
13 # undef REDEF_LOCAL
14 #endif
16 * Extracted from autoopts.c
18 LOCAL void *
19 ao_malloc(size_t sz);
21 LOCAL void *
22 ao_realloc(void *p, size_t sz);
24 LOCAL char *
25 ao_strdup(char const *str);
27 LOCAL tSuccess
28 handle_opt(tOptions * pOpts, tOptState* pOptState);
30 LOCAL tSuccess
31 immediate_opts(tOptions * pOpts);
33 LOCAL tSuccess
34 regular_opts(tOptions * pOpts);
37 * Extracted from check.c
39 LOCAL bool
40 is_consistent(tOptions * pOpts);
43 * Extracted from configfile.c
45 LOCAL void
46 intern_file_load(tOptions* pOpts);
48 LOCAL char*
49 parse_attrs(tOptions * pOpts, char * pzText, tOptionLoadMode * pMode,
50 tOptionValue * pType);
52 LOCAL tSuccess
53 validate_struct(tOptions * pOpts, char const * pzProgram);
56 * Extracted from env.c
58 LOCAL void
59 doPrognameEnv(tOptions * pOpts, teEnvPresetType type);
61 LOCAL void
62 env_presets(tOptions * pOpts, teEnvPresetType type);
65 * Extracted from find.c
67 LOCAL tSuccess
68 opt_find_long(tOptions * pOpts, char const * opt_name, tOptState * pOptState);
70 LOCAL tSuccess
71 opt_find_short(tOptions* pOpts, uint_t optValue, tOptState* pOptState);
73 LOCAL tSuccess
74 get_opt_arg(tOptions * pOpts, tOptState * pOptState);
76 LOCAL tSuccess
77 find_opt(tOptions * pOpts, tOptState * pOptState);
80 * Extracted from load.c
82 LOCAL void
83 mungeString(char* pzTxt, tOptionLoadMode mode);
85 LOCAL void
86 loadOptionLine(
87 tOptions* pOpts,
88 tOptState* pOS,
89 char* pzLine,
90 tDirection direction,
91 tOptionLoadMode load_mode );
94 * Extracted from nested.c
96 LOCAL void
97 unload_arg_list(tArgList* pAL);
99 LOCAL tOptionValue*
100 optionLoadNested(char const* pzTxt, char const* pzName, size_t nameLen);
102 LOCAL int
103 get_special_char(char const ** ppz, int * ct);
105 LOCAL void
106 emit_special_char(FILE * fp, int ch);
109 * Extracted from sort.c
111 LOCAL void
112 optionSort(tOptions* pOpts);
115 * Extracted from stack.c
117 LOCAL void
118 addArgListEntry(void** ppAL, void* entry);
121 * Extracted from usage.c
123 LOCAL void
124 set_usage_flags(tOptions * opts, char const * flg_txt);
126 #ifdef REDEF_LOCAL
127 # undef LOCAL
128 # define LOCAL
129 #endif
130 #endif /* AUTOOPTS_PROTO_H_GUARD */