File: commandline.h

package info (click to toggle)
wireshark 4.6.4-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 351,436 kB
  • sloc: ansic: 3,103,613; cpp: 129,736; xml: 100,978; python: 56,510; perl: 24,575; sh: 5,874; lex: 4,383; pascal: 4,304; makefile: 164; ruby: 113; objc: 91; tcl: 35
file content (71 lines) | stat: -rw-r--r-- 1,674 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
/** @file
 *
 * Common command line handling between GUIs
 *
 * Wireshark - Network traffic analyzer
 * By Gerald Combs <gerald@wireshark.org>
 * Copyright 1998 Gerald Combs
 *
 * SPDX-License-Identifier: GPL-2.0-or-later
 */

#ifndef __COMMANDLINE_H__
#define __COMMANDLINE_H__

#include "cfile.h" /* For search_direction */

#ifdef __cplusplus
extern "C" {
#endif /* __cplusplus */

extern int commandline_early_options(int argc, char *argv[]);


extern const struct ws_option* commandline_long_options(void);

extern const char* commandline_optstring(void);

extern void commandline_override_prefs(int argc, char *argv[], bool opt_reset);

extern void commandline_other_options(int argc, char *argv[], bool opt_reset);

extern void commandline_options_drop(const char *module_name, const char *pref_name);

extern void commandline_options_reapply(void);

extern void commandline_options_apply_extcap(void);

extern void commandline_options_free(void);

extern bool commandline_is_full_screen(void);

extern char* commandline_get_cf_name(void);

extern char* commandline_get_rfilter(void);

extern char* commandline_get_dfilter(void);

extern char* commandline_get_jfilter(void);

extern search_direction commandline_get_jump_direction(void);

extern uint32_t commandline_get_go_to_packet(void);

#ifdef HAVE_LIBPCAP
extern bool commandline_is_start_capture(void);

extern bool commandline_is_quit_after_capture(void);

extern char* commandline_get_first_capture_comment(void);

extern int commandline_get_caps_queries(void);

extern GPtrArray* commandline_get_capture_comments(void);

#endif

#ifdef __cplusplus
}
#endif /* __cplusplus */

#endif /* __COMMANDLINE_H__ */