icons
[lttv.git] / ltt / branches / poly / include / lttv / option.h
CommitLineData
c5d77517 1#ifndef OPTION_H
2#define OPTION_H
3
4/* Options parsing mechanism */
5
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
10 option is present. */
11
12/* Initial draft by Michel Dagenais May 2003
13 * Reworked by Mathieu Desnoyers, May 2003
14 */
15
16typedef enum _lttv_option_type
17{LTTV_OPT_NONE, LTTV_OPT_STRING, LTTV_OPT_INT, LTTV_OPT_LONG }
18lttv_option_type;
19
20typedef void (*lttv_option_hook)(void *hook_data);
21
f68ad60d 22void lttv_option_add(const char *long_name, const char char_name,
23 const char *description, const char *argDescription,
150ef81a 24 const lttv_option_type t, void *p,
25 const lttv_option_hook h, void *hook_data);
c5d77517 26
27
28
29#endif // OPTION_H
This page took 0.023959 seconds and 4 git commands to generate.