2 * Common command line handling between GUIs
4 * Wireshark - Network traffic analyzer
5 * By Gerald Combs <gerald@wireshark.org>
6 * Copyright 1998 Gerald Combs
8 * This program is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU General Public License
10 * as published by the Free Software Foundation; either version 2
11 * of the License, or (at your option) any later version.
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
18 * You should have received a copy of the GNU General Public License
19 * along with this program; if not, write to the Free Software
20 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
23 #ifndef __COMMANDLINE_H__
24 #define __COMMANDLINE_H__
28 #endif /* __cplusplus */
30 extern void commandline_print_usage(gboolean for_help_option);
32 extern void commandline_early_options(int argc, char *argv[],
33 GString *comp_info_str, GString *runtime_info_str);
35 /* Command-line options that don't have direct API calls to handle the data */
36 typedef struct commandline_param_info
39 gboolean list_link_layer_types;
40 gboolean start_capture;
41 gboolean quit_after_cap;
44 search_direction jump_backwards;
51 GSList *disable_protocol_slist;
52 GSList *enable_heur_slist;
53 GSList *disable_heur_slist;
56 } commandline_param_info_t;
58 extern void commandline_other_options(int argc, char *argv[], gboolean opt_reset);
60 extern commandline_param_info_t global_commandline_info;
64 #endif /* __cplusplus */
66 #endif /* __COMMANDLINE_H__ */
74 * indent-tabs-mode: nil
77 * ex: set shiftwidth=4 tabstop=8 expandtab:
78 * :indentSize=4:tabSize=8:noTabs=true: