09fd803bfc82ae3499158b8e0eb2f2e042ed2f6c
4 /* Options parsing mechanism */
6 /* Define a new command line option with a long name (--long_name), a short
7 one character name (-c), a descriptive text, the argument type, and a
8 pointer to where the argument value will be stored. For an option of
9 type LTTV_OPT_NONE, the argument is a boolean value set to true when the
12 /* Initial draft by Michel Dagenais May 2003
13 * Reworked by Mathieu Desnoyers, May 2003
16 typedef enum _lttv_option_type
17 {LTTV_OPT_NONE
, LTTV_OPT_STRING
, LTTV_OPT_INT
, LTTV_OPT_LONG
}
20 typedef void (*lttv_option_hook
)(void *hook_data
);
22 void lttv_option_add(const char *long_name
, const char char_name
,
23 const char *description
, const char *argDescription
,
24 const lttv_option_type t
, void *p
,
25 const lttv_option_hook h
, void *hook_data
);
This page took 0.03987 seconds and 4 git commands to generate.