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