VSF Documented
argtable3.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 1998-2001,2003-2011,2013 Stewart Heitmann
3 *
4 * SPDX-License-Identifier: BSD-3-Clause
5 */
6/*******************************************************************************
7 * argtable3: Declares the main interfaces of the library
8 *
9 * This file is part of the argtable3 library.
10 *
11 * Copyright (C) 1998-2001,2003-2011,2013 Stewart Heitmann
12 * <sheitmann@users.sourceforge.net>
13 * All rights reserved.
14 *
15 * Redistribution and use in source and binary forms, with or without
16 * modification, are permitted provided that the following conditions are met:
17 * * Redistributions of source code must retain the above copyright
18 * notice, this list of conditions and the following disclaimer.
19 * * Redistributions in binary form must reproduce the above copyright
20 * notice, this list of conditions and the following disclaimer in the
21 * documentation and/or other materials provided with the distribution.
22 * * Neither the name of STEWART HEITMANN nor the names of its contributors
23 * may be used to endorse or promote products derived from this software
24 * without specific prior written permission.
25 *
26 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
27 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
28 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
29 * ARE DISCLAIMED. IN NO EVENT SHALL STEWART HEITMANN BE LIABLE FOR ANY DIRECT,
30 * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
31 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
32 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
33 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
34 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
35 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
36 ******************************************************************************/
37
38#ifndef ARGTABLE3
39#define ARGTABLE3
40
41#include <stdio.h> /* FILE */
42#include <time.h> /* struct tm */
43
44#ifdef __cplusplus
45extern "C" {
46#endif
47
48#define ARG_REX_ICASE 1
49#define ARG_DSTR_SIZE 200
50#define ARG_CMD_NAME_LEN 100
51#define ARG_CMD_DESCRIPTION_LEN 256
52
53#ifndef ARG_REPLACE_GETOPT
54#define ARG_REPLACE_GETOPT 0 /* ESP-IDF-specific: use newlib-provided getopt instead of the embedded one */
55#endif /* ARG_REPLACE_GETOPT */
56
57/* bit masks for arg_hdr.flag */
58enum { ARG_TERMINATOR = 0x1, ARG_HASVALUE = 0x2, ARG_HASOPTVALUE = 0x4 };
59
60#if defined(_WIN32)
61 #if defined(argtable3_EXPORTS)
62 #define ARG_EXTERN __declspec(dllexport)
63 #elif defined(argtable3_IMPORTS)
64 #define ARG_EXTERN __declspec(dllimport)
65 #else
66 #define ARG_EXTERN
67 #endif
68#else
69 #define ARG_EXTERN
70#endif
71
73typedef void* arg_cmd_itr_t;
74
75typedef void(arg_resetfn)(void* parent);
76typedef int(arg_scanfn)(void* parent, const char* argval);
77typedef int(arg_checkfn)(void* parent);
78typedef void(arg_errorfn)(void* parent, arg_dstr_t ds, int error, const char* argval, const char* progname);
79typedef void(arg_dstr_freefn)(char* buf);
80typedef int(arg_cmdfn)(int argc, char* argv[], arg_dstr_t res);
81typedef int(arg_comparefn)(const void* k1, const void* k2);
82
83/*
84 * The arg_hdr struct defines properties that are common to all arg_xxx structs.
85 * The argtable library requires each arg_xxx struct to have an arg_hdr
86 * struct as its first data member.
87 * The argtable library functions then use this data to identify the
88 * properties of the command line option, such as its option tags,
89 * datatype string, and glossary strings, and so on.
90 * Moreover, the arg_hdr struct contains pointers to custom functions that
91 * are provided by each arg_xxx struct which perform the tasks of parsing
92 * that particular arg_xxx arguments, performing post-parse checks, and
93 * reporting errors.
94 * These functions are private to the individual arg_xxx source code
95 * and are the pointer to them are initiliased by that arg_xxx struct's
96 * constructor function. The user could alter them after construction
97 * if desired, but the original intention is for them to be set by the
98 * constructor and left unaltered.
99 */
100typedef struct arg_hdr {
101 char flag; /* Modifier flags: ARG_TERMINATOR, ARG_HASVALUE. */
102 const char* shortopts; /* String defining the short options */
103 const char* longopts; /* String defiing the long options */
104 const char* datatype; /* Description of the argument data type */
105 const char* glossary; /* Description of the option as shown by arg_print_glossary function */
106 int mincount; /* Minimum number of occurences of this option accepted */
107 int maxcount; /* Maximum number of occurences if this option accepted */
108 void* parent; /* Pointer to parent arg_xxx struct */
109 arg_resetfn* resetfn; /* Pointer to parent arg_xxx reset function */
110 arg_scanfn* scanfn; /* Pointer to parent arg_xxx scan function */
111 arg_checkfn* checkfn; /* Pointer to parent arg_xxx check function */
112 arg_errorfn* errorfn; /* Pointer to parent arg_xxx error function */
113 void* priv; /* Pointer to private header data for use by arg_xxx functions */
115
116typedef struct arg_rem {
117 struct arg_hdr hdr; /* The mandatory argtable header struct */
119
120typedef struct arg_lit {
121 struct arg_hdr hdr; /* The mandatory argtable header struct */
122 int count; /* Number of matching command line args */
124
125typedef struct arg_int {
126 struct arg_hdr hdr; /* The mandatory argtable header struct */
127 int count; /* Number of matching command line args */
128 int* ival; /* Array of parsed argument values */
130
131typedef struct arg_dbl {
132 struct arg_hdr hdr; /* The mandatory argtable header struct */
133 int count; /* Number of matching command line args */
134 double* dval; /* Array of parsed argument values */
136
137typedef struct arg_str {
138 struct arg_hdr hdr; /* The mandatory argtable header struct */
139 int count; /* Number of matching command line args */
140 const char** sval; /* Array of parsed argument values */
142
143typedef struct arg_rex {
144 struct arg_hdr hdr; /* The mandatory argtable header struct */
145 int count; /* Number of matching command line args */
146 const char** sval; /* Array of parsed argument values */
148
149typedef struct arg_file {
150 struct arg_hdr hdr; /* The mandatory argtable header struct */
151 int count; /* Number of matching command line args*/
152 const char** filename; /* Array of parsed filenames (eg: /home/foo.bar) */
153 const char** basename; /* Array of parsed basenames (eg: foo.bar) */
154 const char** extension; /* Array of parsed extensions (eg: .bar) */
156
157typedef struct arg_date {
158 struct arg_hdr hdr; /* The mandatory argtable header struct */
159 const char* format; /* strptime format string used to parse the date */
160 int count; /* Number of matching command line args */
161 struct tm* tmval; /* Array of parsed time values */
163
165typedef struct arg_end {
166 struct arg_hdr hdr; /* The mandatory argtable header struct */
167 int count; /* Number of errors encountered */
168 int* error; /* Array of error codes */
169 void** parent; /* Array of pointers to offending arg_xxx struct */
170 const char** argval; /* Array of pointers to offending argv[] string */
172
173typedef struct arg_cmd_info {
178
179/**** arg_xxx constructor functions *********************************/
180
181ARG_EXTERN struct arg_rem* arg_rem(const char* datatype, const char* glossary);
182
183ARG_EXTERN struct arg_lit* arg_lit0(const char* shortopts, const char* longopts, const char* glossary);
184ARG_EXTERN struct arg_lit* arg_lit1(const char* shortopts, const char* longopts, const char* glossary);
185ARG_EXTERN struct arg_lit* arg_litn(const char* shortopts, const char* longopts, int mincount, int maxcount, const char* glossary);
186
187ARG_EXTERN struct arg_int* arg_int0(const char* shortopts, const char* longopts, const char* datatype, const char* glossary);
188ARG_EXTERN struct arg_int* arg_int1(const char* shortopts, const char* longopts, const char* datatype, const char* glossary);
189ARG_EXTERN struct arg_int* arg_intn(const char* shortopts, const char* longopts, const char* datatype, int mincount, int maxcount, const char* glossary);
190
191ARG_EXTERN struct arg_dbl* arg_dbl0(const char* shortopts, const char* longopts, const char* datatype, const char* glossary);
192ARG_EXTERN struct arg_dbl* arg_dbl1(const char* shortopts, const char* longopts, const char* datatype, const char* glossary);
193ARG_EXTERN struct arg_dbl* arg_dbln(const char* shortopts, const char* longopts, const char* datatype, int mincount, int maxcount, const char* glossary);
194
195ARG_EXTERN struct arg_str* arg_str0(const char* shortopts, const char* longopts, const char* datatype, const char* glossary);
196ARG_EXTERN struct arg_str* arg_str1(const char* shortopts, const char* longopts, const char* datatype, const char* glossary);
197ARG_EXTERN struct arg_str* arg_strn(const char* shortopts, const char* longopts, const char* datatype, int mincount, int maxcount, const char* glossary);
198
199ARG_EXTERN struct arg_rex* arg_rex0(const char* shortopts, const char* longopts, const char* pattern, const char* datatype, int flags, const char* glossary);
200ARG_EXTERN struct arg_rex* arg_rex1(const char* shortopts, const char* longopts, const char* pattern, const char* datatype, int flags, const char* glossary);
201ARG_EXTERN struct arg_rex* arg_rexn(const char* shortopts,
202 const char* longopts,
203 const char* pattern,
204 const char* datatype,
205 int mincount,
206 int maxcount,
207 int flags,
208 const char* glossary);
209
210ARG_EXTERN struct arg_file* arg_file0(const char* shortopts, const char* longopts, const char* datatype, const char* glossary);
211ARG_EXTERN struct arg_file* arg_file1(const char* shortopts, const char* longopts, const char* datatype, const char* glossary);
212ARG_EXTERN struct arg_file* arg_filen(const char* shortopts, const char* longopts, const char* datatype, int mincount, int maxcount, const char* glossary);
213
214ARG_EXTERN struct arg_date* arg_date0(const char* shortopts, const char* longopts, const char* format, const char* datatype, const char* glossary);
215ARG_EXTERN struct arg_date* arg_date1(const char* shortopts, const char* longopts, const char* format, const char* datatype, const char* glossary);
216ARG_EXTERN struct arg_date* arg_daten(const char* shortopts, const char* longopts, const char* format, const char* datatype, int mincount, int maxcount, const char* glossary);
217
218ARG_EXTERN struct arg_end* arg_end(int maxcount);
219
220#define ARG_DSTR_STATIC ((arg_dstr_freefn*)0)
221#define ARG_DSTR_VOLATILE ((arg_dstr_freefn*)1)
222#define ARG_DSTR_DYNAMIC ((arg_dstr_freefn*)3)
223
224/**** other functions *******************************************/
225ARG_EXTERN int arg_nullcheck(void** argtable);
226ARG_EXTERN int arg_parse(int argc, char** argv, void** argtable);
227ARG_EXTERN void arg_print_option(FILE* fp, const char* shortopts, const char* longopts, const char* datatype, const char* suffix);
228ARG_EXTERN void arg_print_syntax(FILE* fp, void** argtable, const char* suffix);
229ARG_EXTERN void arg_print_syntaxv(FILE* fp, void** argtable, const char* suffix);
230ARG_EXTERN void arg_print_glossary(FILE* fp, void** argtable, const char* format);
231ARG_EXTERN void arg_print_glossary_gnu(FILE* fp, void** argtable);
232ARG_EXTERN void arg_print_formatted(FILE *fp, const unsigned lmargin, const unsigned rmargin, const char *text);
233ARG_EXTERN void arg_print_errors(FILE* fp, struct arg_end* end, const char* progname);
234ARG_EXTERN void arg_print_option_ds(arg_dstr_t ds, const char* shortopts, const char* longopts, const char* datatype, const char* suffix);
235ARG_EXTERN void arg_print_syntax_ds(arg_dstr_t ds, void** argtable, const char* suffix);
236ARG_EXTERN void arg_print_syntaxv_ds(arg_dstr_t ds, void** argtable, const char* suffix);
237ARG_EXTERN void arg_print_glossary_ds(arg_dstr_t ds, void** argtable, const char* format);
238ARG_EXTERN void arg_print_glossary_gnu_ds(arg_dstr_t ds, void** argtable);
239ARG_EXTERN void arg_print_errors_ds(arg_dstr_t ds, struct arg_end* end, const char* progname);
240ARG_EXTERN void arg_freetable(void** argtable, size_t n);
241
246ARG_EXTERN void arg_dstr_set(arg_dstr_t ds, char* str, arg_dstr_freefn* free_proc);
247ARG_EXTERN void arg_dstr_cat(arg_dstr_t ds, const char* str);
248ARG_EXTERN void arg_dstr_catc(arg_dstr_t ds, char c);
249ARG_EXTERN void arg_dstr_catf(arg_dstr_t ds, const char* fmt, ...);
251
252ARG_EXTERN void arg_cmd_init(void);
253ARG_EXTERN void arg_cmd_uninit(void);
254ARG_EXTERN void arg_cmd_register(const char* name, arg_cmdfn* proc, const char* description);
255ARG_EXTERN void arg_cmd_unregister(const char* name);
256ARG_EXTERN int arg_cmd_dispatch(const char* name, int argc, char* argv[], arg_dstr_t res);
257ARG_EXTERN unsigned int arg_cmd_count(void);
258ARG_EXTERN arg_cmd_info_t* arg_cmd_info(const char* name);
265ARG_EXTERN void arg_mgsort(void* data, int size, int esize, int i, int k, arg_comparefn* comparefn);
267ARG_EXTERN void arg_make_help_msg(arg_dstr_t ds, char* cmd_name, void** argtable);
268ARG_EXTERN void arg_make_syntax_err_msg(arg_dstr_t ds, void** argtable, struct arg_end* end);
269ARG_EXTERN int arg_make_syntax_err_help_msg(arg_dstr_t ds, char* name, int help, int nerrors, void** argtable, struct arg_end* end, int* exitcode);
270ARG_EXTERN void arg_set_module_name(const char* name);
271ARG_EXTERN void arg_set_module_version(int major, int minor, int patch, const char* tag);
272
273/**** deprecated functions, for back-compatibility only ********/
274ARG_EXTERN void arg_free(void** argtable);
275
276#ifdef __cplusplus
277}
278#endif
279#endif
ARG_EXTERN struct arg_int * arg_intn(const char *shortopts, const char *longopts, const char *datatype, int mincount, int maxcount, const char *glossary)
Definition arg_int.c:257
@ ARG_EMALLOC
Definition argtable3.h:164
@ ARG_ELONGOPT
Definition argtable3.h:164
@ ARG_ENOMATCH
Definition argtable3.h:164
@ ARG_ELIMIT
Definition argtable3.h:164
@ ARG_EMISSARG
Definition argtable3.h:164
ARG_EXTERN struct arg_lit * arg_lit0(const char *shortopts, const char *longopts, const char *glossary)
Definition arg_lit.c:89
int() arg_cmdfn(int argc, char *argv[], arg_dstr_t res)
Definition argtable3.h:80
ARG_EXTERN void arg_dstr_cat(arg_dstr_t ds, const char *str)
Definition arg_dstr.c:180
ARG_EXTERN void arg_print_glossary(FILE *fp, void **argtable, const char *format)
Definition argtable3.c:851
ARG_EXTERN void arg_cmd_uninit(void)
Definition arg_cmd.c:118
ARG_EXTERN void arg_print_errors(FILE *fp, struct arg_end *end, const char *progname)
Definition arg_end.c:130
ARG_EXTERN void arg_print_errors_ds(arg_dstr_t ds, struct arg_end *end, const char *progname)
Definition arg_end.c:120
ARG_EXTERN arg_cmd_info_t * arg_cmd_itr_value(arg_cmd_itr_t itr)
Definition arg_cmd.c:187
struct arg_end arg_end_t
ARG_EXTERN void arg_print_glossary_gnu_ds(arg_dstr_t ds, void **argtable)
Definition argtable3.c:981
ARG_EXTERN void arg_print_syntax_ds(arg_dstr_t ds, void **argtable, const char *suffix)
Definition argtable3.c:710
int() arg_scanfn(void *parent, const char *argval)
Definition argtable3.h:76
void() arg_resetfn(void *parent)
Definition argtable3.h:75
ARG_EXTERN struct arg_dbl * arg_dbln(const char *shortopts, const char *longopts, const char *datatype, int mincount, int maxcount, const char *glossary)
Definition arg_dbl.c:122
ARG_EXTERN void arg_print_option_ds(arg_dstr_t ds, const char *shortopts, const char *longopts, const char *datatype, const char *suffix)
Definition argtable3.c:637
@ ARG_TERMINATOR
Definition argtable3.h:58
@ ARG_HASVALUE
Definition argtable3.h:58
@ ARG_HASOPTVALUE
Definition argtable3.h:58
ARG_EXTERN void arg_dstr_free(arg_dstr_t ds)
Definition arg_dstr.c:319
struct arg_file arg_file_t
ARG_EXTERN arg_cmd_itr_t arg_cmd_itr_create(void)
Definition arg_cmd.c:175
struct arg_int arg_int_t
struct arg_hdr arg_hdr_t
ARG_EXTERN int arg_cmd_itr_search(arg_cmd_itr_t itr, void *k)
Definition arg_cmd.c:195
ARG_EXTERN int arg_nullcheck(void **argtable)
Definition argtable3.c:1026
struct arg_dbl arg_dbl_t
ARG_EXTERN int arg_make_syntax_err_help_msg(arg_dstr_t ds, char *name, int help, int nerrors, void **argtable, struct arg_end *end, int *exitcode)
Definition arg_cmd.c:241
ARG_EXTERN int arg_cmd_itr_advance(arg_cmd_itr_t itr)
Definition arg_cmd.c:179
ARG_EXTERN struct arg_lit * arg_litn(const char *shortopts, const char *longopts, int mincount, int maxcount, const char *glossary)
Definition arg_lit.c:97
ARG_EXTERN struct arg_date * arg_daten(const char *shortopts, const char *longopts, const char *format, const char *datatype, int mincount, int maxcount, const char *glossary)
Definition arg_date.c:128
ARG_EXTERN struct arg_dbl * arg_dbl1(const char *shortopts, const char *longopts, const char *datatype, const char *glossary)
Definition arg_dbl.c:118
ARG_EXTERN struct arg_lit * arg_lit1(const char *shortopts, const char *longopts, const char *glossary)
Definition arg_lit.c:93
ARG_EXTERN void arg_make_get_help_msg(arg_dstr_t res)
Definition arg_cmd.c:213
void() arg_dstr_freefn(char *buf)
Definition argtable3.h:79
ARG_EXTERN void arg_dstr_catc(arg_dstr_t ds, char c)
Definition arg_dstr.c:185
ARG_EXTERN void arg_make_syntax_err_msg(arg_dstr_t ds, void **argtable, struct arg_end *end)
Definition arg_cmd.c:233
ARG_EXTERN void arg_print_formatted(FILE *fp, const unsigned lmargin, const unsigned rmargin, const char *text)
Definition argtable3.c:965
ARG_EXTERN void arg_free(void **argtable)
Definition argtable3.c:1055
#define ARG_CMD_NAME_LEN
Definition argtable3.h:50
int() arg_comparefn(const void *k1, const void *k2)
Definition argtable3.h:81
void() arg_errorfn(void *parent, arg_dstr_t ds, int error, const char *argval, const char *progname)
Definition argtable3.h:78
ARG_EXTERN struct arg_rex * arg_rex0(const char *shortopts, const char *longopts, const char *pattern, const char *datatype, int flags, const char *glossary)
Definition arg_rex.c:217
ARG_EXTERN struct arg_date * arg_date1(const char *shortopts, const char *longopts, const char *format, const char *datatype, const char *glossary)
Definition arg_date.c:123
struct arg_rex arg_rex_t
ARG_EXTERN void arg_set_module_name(const char *name)
Definition arg_cmd.c:58
ARG_EXTERN void arg_print_option(FILE *fp, const char *shortopts, const char *longopts, const char *datatype, const char *suffix)
Definition argtable3.c:649
ARG_EXTERN void arg_print_syntaxv_ds(arg_dstr_t ds, void **argtable, const char *suffix)
Definition argtable3.c:776
ARG_EXTERN struct arg_rex * arg_rex1(const char *shortopts, const char *longopts, const char *pattern, const char *datatype, int flags, const char *glossary)
Definition arg_rex.c:221
void * arg_cmd_itr_t
Definition argtable3.h:73
struct _internal_arg_dstr * arg_dstr_t
Definition argtable3.h:72
ARG_EXTERN unsigned int arg_cmd_count(void)
Definition arg_cmd.c:171
ARG_EXTERN void arg_cmd_itr_destroy(arg_cmd_itr_t itr)
Definition arg_cmd.c:191
ARG_EXTERN void arg_make_help_msg(arg_dstr_t ds, char *cmd_name, void **argtable)
Definition arg_cmd.c:218
ARG_EXTERN struct arg_int * arg_int1(const char *shortopts, const char *longopts, const char *datatype, const char *glossary)
Definition arg_int.c:253
ARG_EXTERN void arg_print_syntaxv(FILE *fp, void **argtable, const char *suffix)
Definition argtable3.c:826
ARG_EXTERN void arg_freetable(void **argtable, size_t n)
Definition argtable3.c:1078
struct arg_rem arg_rem_t
ARG_EXTERN void arg_print_glossary_gnu(FILE *fp, void **argtable)
Definition argtable3.c:1015
ARG_EXTERN void arg_dstr_destroy(arg_dstr_t ds)
Definition arg_dstr.c:121
#define ARG_EXTERN
Definition argtable3.h:69
ARG_EXTERN int arg_parse(int argc, char **argv, void **argtable)
Definition argtable3.c:432
ARG_EXTERN struct arg_dbl * arg_dbl0(const char *shortopts, const char *longopts, const char *datatype, const char *glossary)
Definition arg_dbl.c:114
ARG_EXTERN void arg_cmd_register(const char *name, arg_cmdfn *proc, const char *description)
Definition arg_cmd.c:122
struct arg_date arg_date_t
ARG_EXTERN struct arg_date * arg_date0(const char *shortopts, const char *longopts, const char *format, const char *datatype, const char *glossary)
Definition arg_date.c:119
ARG_EXTERN int arg_cmd_dispatch(const char *name, int argc, char *argv[], arg_dstr_t res)
Definition arg_cmd.c:158
struct arg_lit arg_lit_t
ARG_EXTERN struct arg_rex * arg_rexn(const char *shortopts, const char *longopts, const char *pattern, const char *datatype, int mincount, int maxcount, int flags, const char *glossary)
Definition arg_rex.c:225
ARG_EXTERN void arg_print_glossary_ds(arg_dstr_t ds, void **argtable, const char *format)
Definition argtable3.c:833
struct arg_str arg_str_t
ARG_EXTERN struct arg_file * arg_file0(const char *shortopts, const char *longopts, const char *datatype, const char *glossary)
Definition arg_file.c:161
ARG_EXTERN void arg_dstr_catf(arg_dstr_t ds, const char *fmt,...)
Definition arg_dstr.c:223
ARG_EXTERN void arg_print_syntax(FILE *fp, void **argtable, const char *suffix)
Definition argtable3.c:769
struct arg_cmd_info arg_cmd_info_t
ARG_EXTERN char * arg_cmd_itr_key(arg_cmd_itr_t itr)
Definition arg_cmd.c:183
ARG_EXTERN char * arg_dstr_cstr(arg_dstr_t ds)
Definition arg_dstr.c:175
ARG_EXTERN void arg_set_module_version(int major, int minor, int patch, const char *tag)
Definition arg_cmd.c:68
ARG_EXTERN void arg_cmd_init(void)
Definition arg_cmd.c:114
#define ARG_CMD_DESCRIPTION_LEN
Definition argtable3.h:51
ARG_EXTERN struct arg_file * arg_file1(const char *shortopts, const char *longopts, const char *datatype, const char *glossary)
Definition arg_file.c:165
ARG_EXTERN arg_dstr_t arg_dstr_create(void)
Definition arg_dstr.c:112
ARG_EXTERN struct arg_int * arg_int0(const char *shortopts, const char *longopts, const char *datatype, const char *glossary)
Definition arg_int.c:249
ARG_EXTERN void arg_mgsort(void *data, int size, int esize, int i, int k, arg_comparefn *comparefn)
Definition arg_utils.c:178
ARG_EXTERN struct arg_str * arg_strn(const char *shortopts, const char *longopts, const char *datatype, int mincount, int maxcount, const char *glossary)
Definition arg_str.c:112
ARG_EXTERN void arg_cmd_unregister(const char *name)
Definition arg_cmd.c:154
int() arg_checkfn(void *parent)
Definition argtable3.h:77
ARG_EXTERN struct arg_file * arg_filen(const char *shortopts, const char *longopts, const char *datatype, int mincount, int maxcount, const char *glossary)
Definition arg_file.c:169
ARG_EXTERN void arg_dstr_set(arg_dstr_t ds, char *str, arg_dstr_freefn *free_proc)
Definition arg_dstr.c:130
ARG_EXTERN struct arg_str * arg_str0(const char *shortopts, const char *longopts, const char *datatype, const char *glossary)
Definition arg_str.c:104
ARG_EXTERN struct arg_str * arg_str1(const char *shortopts, const char *longopts, const char *datatype, const char *glossary)
Definition arg_str.c:108
ARG_EXTERN void arg_dstr_reset(arg_dstr_t ds)
Definition arg_dstr.c:330
struct arg_end * end
Definition esp_console_port.c:84
struct ieee80211_ext_chansw_ie data
Definition ieee80211.h:80
Definition stdio.h:145
Definition arg_dstr.c:101
Definition argtable3.h:173
char description[ARG_CMD_DESCRIPTION_LEN]
Definition argtable3.h:175
char name[ARG_CMD_NAME_LEN]
Definition argtable3.h:174
arg_cmdfn * proc
Definition argtable3.h:176
Definition argtable3.h:157
int count
Definition argtable3.h:160
const char * format
Definition argtable3.h:159
struct tm * tmval
Definition argtable3.h:161
struct arg_hdr hdr
Definition argtable3.h:158
Definition argtable3.h:131
struct arg_hdr hdr
Definition argtable3.h:132
double * dval
Definition argtable3.h:134
int count
Definition argtable3.h:133
Definition argtable3.h:165
void ** parent
Definition argtable3.h:169
int * error
Definition argtable3.h:168
struct arg_hdr hdr
Definition argtable3.h:166
const char ** argval
Definition argtable3.h:170
int count
Definition argtable3.h:167
Definition argtable3.h:149
const char ** basename
Definition argtable3.h:153
int count
Definition argtable3.h:151
const char ** filename
Definition argtable3.h:152
const char ** extension
Definition argtable3.h:154
struct arg_hdr hdr
Definition argtable3.h:150
Definition argtable3.h:100
const char * longopts
Definition argtable3.h:103
const char * glossary
Definition argtable3.h:105
arg_scanfn * scanfn
Definition argtable3.h:110
arg_errorfn * errorfn
Definition argtable3.h:112
void * parent
Definition argtable3.h:108
const char * shortopts
Definition argtable3.h:102
int mincount
Definition argtable3.h:106
arg_resetfn * resetfn
Definition argtable3.h:109
int maxcount
Definition argtable3.h:107
char flag
Definition argtable3.h:101
const char * datatype
Definition argtable3.h:104
void * priv
Definition argtable3.h:113
arg_checkfn * checkfn
Definition argtable3.h:111
Definition argtable3.h:125
struct arg_hdr hdr
Definition argtable3.h:126
int count
Definition argtable3.h:127
int * ival
Definition argtable3.h:128
Definition argtable3.h:120
struct arg_hdr hdr
Definition argtable3.h:121
int count
Definition argtable3.h:122
Definition argtable3.h:116
struct arg_hdr hdr
Definition argtable3.h:117
Definition argtable3.h:143
const char ** sval
Definition argtable3.h:146
int count
Definition argtable3.h:145
struct arg_hdr hdr
Definition argtable3.h:144
Definition argtable3.h:137
int count
Definition argtable3.h:139
struct arg_hdr hdr
Definition argtable3.h:138
const char ** sval
Definition argtable3.h:140
Definition time.h:53
unsigned int major(dev_t dev)
Definition vsf_linux.c:4019
unsigned int minor(dev_t dev)
Definition vsf_linux.c:4024
uint32_t size
Definition vsf_memfs.h:50
SDL_PixelFormat format
Definition vsf_sdl2_pixelformat.c:32
Generated from commit: vsfteam/vsf@c3767bf