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