libcfg+  0.7.0
shared.h
Go to the documentation of this file.
1 /*
2  * libcfg+ - precise command line & config file parsing library
3  *
4  * shared.h - shared stuff for command line and config file
5  * parsing header file
6  * ____________________________________________________________
7  *
8  * Developed by Ondrej Jombik <nepto@platon.sk>
9  * and Lubomir Host <rajo@platon.sk>
10  * Copyright (c) 2001-2015 Platon Group, http://platon.sk/
11  * All rights reserved.
12  *
13  * See README file for more information about this software.
14  * See COPYING file for license information.
15  *
16  * Download the latest version from
17  * http://opensource.platon.sk/projects/libcfg+/
18  */
19 
20 /* $Platon: libcfg+/src/shared.h,v 1.14 2015/09/12 04:04:50 nepto Exp $ */
21 
31 #ifndef _PLATON_CFG_SHARED_H
32 #define _PLATON_CFG_SHARED_H
33 
41 void __cfg_free_currents(const CFG_CONTEXT con);
42 
52 int __cfg_process_currents(const CFG_CONTEXT con, int *ret_val, int *arg_used);
53 
62 
71 int __cfg_cfgfile_set_currents(const CFG_CONTEXT con, char *buf);
72 
73 #endif /* #ifndef _PLATON_CFG_SHARED_H */
74 
void __cfg_free_currents(const CFG_CONTEXT con)
Free current variables (cur_opt, cur_arg) in context and sets cur_opt_type to CFG_NONE_OPTION.
int __cfg_process_currents(const CFG_CONTEXT con, int *ret_val, int *arg_used)
Process current option and argument.
int __cfg_cfgfile_set_currents(const CFG_CONTEXT con, char *buf)
Allocate and initialize variables cur_opt and cur_arg in initialized config file context according to...
Main structure for defining context.
Definition: cfg+.h:427
int __cfg_cmdline_set_currents(const CFG_CONTEXT con)
Allocate and initialize variables cur_opt and cur_arg in initialized command line context according t...

libcfg+ developer documentation generated by Doxygen