| Wireshark 4.7.0 The Wireshark network protocol analyzer

Loading...
Searching...
No Matches
disabled_protos.h
Go to the documentation of this file.
1
12#ifndef DISABLED_PROTOS_H
13#define DISABLED_PROTOS_H
14
15#ifdef __cplusplus
16extern "C" {
17#endif /* __cplusplus */
18
19#include <ws_symbol_export.h>
20
21/*
22 * Tell if protocols have been enabled/disabled since
23 * we've last loaded (or saved) the lists.
24 */
25WS_DLL_PUBLIC bool
26enabled_protos_unsaved_changes(void);
27
28/*
29 * Disable a particular protocol by name
30 * On success (found the protocol), return true.
31 * On failure (didn't find the protocol), return false.
32 */
33WS_DLL_PUBLIC bool
34proto_disable_proto_by_name(const char *name);
35
36/*
37 * Enable a particular protocol by name
38 * On success (found the protocol), return true.
39 * On failure (didn't find the protocol), return false.
40 */
41WS_DLL_PUBLIC bool
42proto_enable_proto_by_name(const char *name);
43
44/*
45 * Enable a particular heuristic dissector by name
46 * On success (found the protocol), return true.
47 * On failure (didn't find the protocol), return false.
48 */
49WS_DLL_PUBLIC bool
50proto_enable_heuristic_by_name(const char *name);
51
52/*
53 * Disable a particular heuristic dissector by name
54 * On success (found the protocol), return true.
55 * On failure (didn't find the protocol), return false.
56 */
57WS_DLL_PUBLIC bool
58proto_disable_heuristic_by_name(const char *name);
59
60/*
61 * Read the files that enable and disable protocols and heuristic
62 * dissectors. Report errors through the UI.
63 *
64 * This is called by epan_load_settings(); programs should call that
65 * rather than individually calling the routines it calls.
66 * This is only public (instead of extern) to allow users who temporarily
67 * disable protocols in the PHS GUI to re-enable them.
68 */
69WS_DLL_PUBLIC void
70read_enabled_and_disabled_lists(const char* app_env_var_prefix);
71
72/*
73 * Write out the lists of enabled and disabled protocols and heuristic
74 * dissectors to the corresponding files. Report errors through the UI.
75 */
76WS_DLL_PUBLIC void
77save_enabled_and_disabled_lists(const char* app_env_var_prefix);
78
79/*
80 * Free the internal structures
81 */
82extern void
83cleanup_enabled_and_disabled_lists(void);
84
85#ifdef __cplusplus
86}
87#endif /* __cplusplus */
88
89#endif /* DISABLED_PROTOS_H */