2 * Declarations of routines for reading and writing protocols file that determine
3 * enabling and disabling of protocols.
5 * Wireshark - Network traffic analyzer
6 * By Gerald Combs <gerald@wireshark.org>
7 * Copyright 1998 Gerald Combs
9 * SPDX-License-Identifier: GPL-2.0-or-later
12 #ifndef DISABLED_PROTOS_H
13 #define DISABLED_PROTOS_H
17 #endif /* __cplusplus */
20 * Disable a particular protocol by name
23 proto_disable_proto_by_name(const char *name);
26 * Enable a particular protocol by name. This will only enable
27 * protocols that are disabled by default. All others will be ignored.
30 proto_enable_proto_by_name(const char *name);
33 * Enable/disable a particular heuristic dissector by name
34 * On success (found the protocol), return TRUE.
35 * On failure (didn't find the protocol), return FALSE.
37 WS_DLL_PUBLIC gboolean
38 proto_enable_heuristic_by_name(const char *name, gboolean enable);
41 * Read the files that enable and disable protocols and heuristic
42 * dissectors. Report errors through the UI.
44 * This is called by epan_load_settings(); programs should call that
45 * rather than individually calling the routines it calls.
48 read_enabled_and_disabled_lists(void);
51 * Write out the lists of enabled and disabled protocols and heuristic
52 * dissectors to the corresponding files. Report errors through the UI.
55 save_enabled_and_disabled_lists(void);
58 * Free the internal structures
61 cleanup_enabled_and_disabled_lists(void);
65 #endif /* __cplusplus */
67 #endif /* DISABLED_PROTOS_H */