2 * option.h: Library for interactive commandline interfaces
4 * Copyright (C) 2009 Matthias Bolte <matthias.bolte@googlemail.com>
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public
8 * License as published by the Free Software Foundation; either
9 * version 2.1 of the License, or (at your option) any later version.
11 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Lesser General Public License for more details.
16 * You should have received a copy of the GNU Lesser General Public
17 * License along with this library; if not, write to the Free Software
18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
21 #ifndef __VSC_CLI__OPTION__PRIVATE_H__
22 #define __VSC_CLI__OPTION__PRIVATE_H__
24 #include "../include/libvsccli/types.h"
27 _vsc_cli_option_syntax (const struct VscCliOptionInfo *option_info,
30 int /* option_parsed */
31 _vsc_cli_option_parse (struct VscError *error,
32 const struct VscCliOptionInfo *option_infos,
33 int untagged_option_index, const char *command_name,
34 const char *input, const char **input_tail,
35 struct VscCliOption *option);
37 const struct VscCliOptionInfo *
38 _vsc_cli_option_infos_lookup_tagged
39 (const struct VscCliOptionInfo *option_infos, const char *option_name,
42 const struct VscCliOptionInfo *
43 _vsc_cli_option_infos_lookup_untagged
44 (const struct VscCliOptionInfo *option_infos, int position);
46 struct VscCliOption * /* option_list_duplicate */
47 _vsc_cli_option_list_duplicate (struct VscError *error,
48 const struct VscCliOption *option_list);
51 _vsc_cli_option_list_append (struct VscError *error,
52 struct VscCliOption **option_list,
53 const struct VscCliOption *option);
56 _vsc_cli_option_list_lookup (const struct VscCliOption *option_list,
57 const char *option_long_name);
59 #endif /* __VSC_CLI__OPTION__PRIVATE_H__ */