/[zanavi_public1]/navit/navit/maptool/cfuopt.h
ZANavi

Contents of /navit/navit/maptool/cfuopt.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 31 - (show annotations) (download)
Mon Feb 4 17:41:59 2013 UTC (11 years, 1 month ago) by zoff99
File MIME type: text/plain
File size: 908 byte(s)
new map version, lots of fixes and experimental new features
1 /* Creation date: 2005-09-04 12:54:41
2 * Authors: Don
3 * Change log:
4 */
5
6 #include "cfu.h"
7
8 #ifndef _CFU_OPT_H_
9 #define _CFU_OPT_H_
10
11 CFU_BEGIN_DECLS
12
13 struct cfuopt_struct;
14 typedef struct cfuopt_struct cfuopt_t;
15
16 /* Returns a new options context */
17 extern cfuopt_t *cfuopt_new();
18
19 /* Adds to the list of known options. */
20 extern void cfuopt_add_entry(cfuopt_t *context, const char *opt_str, void *arg_data,
21 const char *description, const char *arg_description);
22
23 /* Parses the command line and modifies argc and argv to account for
24 * left over arguments.
25 */
26 extern void cfuopt_parse(cfuopt_t *context, int *argc, char ***argv, char **error);
27
28 /* Returns a help string built from the entries added with
29 * cfuopt_add_entry().
30 */
31 extern char * cfuopt_get_help_str(cfuopt_t *context);
32
33 /* Frees up resources used by the option parser. */
34 extern void cfuopt_destroy(cfuopt_t *context);
35
36 CFU_END_DECLS
37
38 #endif

   
Visit the ZANavi Wiki