nexmon – Blame information for rev 1

Subversion Repositories:
Rev:
Rev Author Line No. Line
1 office 1 /* commandline.h
2 * Common command line handling between GUIs
3 *
4 * Wireshark - Network traffic analyzer
5 * By Gerald Combs <gerald@wireshark.org>
6 * Copyright 1998 Gerald Combs
7 *
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.
12 *
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.
17 *
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.
21 */
22  
23 #ifndef __COMMANDLINE_H__
24 #define __COMMANDLINE_H__
25  
26 #ifdef __cplusplus
27 extern "C" {
28 #endif /* __cplusplus */
29  
30 extern void commandline_print_usage(gboolean for_help_option);
31  
32 extern void commandline_early_options(int argc, char *argv[],
33 GString *comp_info_str, GString *runtime_info_str);
34  
35 /* Command-line options that don't have direct API calls to handle the data */
36 typedef struct commandline_param_info
37 {
38 #ifdef HAVE_LIBPCAP
39 gboolean list_link_layer_types;
40 gboolean start_capture;
41 gboolean quit_after_cap;
42 #endif
43 e_prefs *prefs_p;
44 search_direction jump_backwards;
45 guint go_to_packet;
46 gchar* jfilter;
47 gchar* cf_name;
48 gchar* rfilter;
49 gchar* dfilter;
50 ts_type time_format;
51 GSList *disable_protocol_slist;
52 GSList *enable_heur_slist;
53 GSList *disable_heur_slist;
54  
55 } commandline_param_info_t;
56  
57 extern void commandline_other_options(int argc, char *argv[], gboolean opt_reset);
58  
59 extern commandline_param_info_t global_commandline_info;
60  
61 #ifdef __cplusplus
62 }
63 #endif /* __cplusplus */
64  
65 #endif /* __COMMANDLINE_H__ */
66  
67 /*
68 * Editor modelines
69 *
70 * Local Variables:
71 * c-basic-offset: 4
72 * tab-width: 8
73 * indent-tabs-mode: nil
74 * End:
75 *
76 * ex: set shiftwidth=4 tabstop=8 expandtab:
77 * :indentSize=4:tabSize=8:noTabs=true:
78 */