2003-08-07 00:41:28 +00:00
|
|
|
/* disabled_protos.h
|
2016-12-23 20:20:31 +00:00
|
|
|
* Declarations of routines for reading and writing protocols file that determine
|
|
|
|
* enabling and disabling of protocols.
|
2003-08-07 00:41:28 +00:00
|
|
|
*
|
2006-05-21 05:12:17 +00:00
|
|
|
* Wireshark - Network traffic analyzer
|
2008-01-08 22:54:51 +00:00
|
|
|
* By Gerald Combs <gerald@wireshark.org>
|
2003-08-07 00:41:28 +00:00
|
|
|
* Copyright 1998 Gerald Combs
|
|
|
|
*
|
2018-02-08 16:59:17 +00:00
|
|
|
* SPDX-License-Identifier: GPL-2.0-or-later
|
2003-08-07 00:41:28 +00:00
|
|
|
*/
|
|
|
|
|
2011-12-29 00:08:47 +00:00
|
|
|
#ifndef DISABLED_PROTOS_H
|
|
|
|
#define DISABLED_PROTOS_H
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif /* __cplusplus */
|
|
|
|
|
2015-07-14 04:28:49 +00:00
|
|
|
/*
|
|
|
|
* Disable a particular protocol by name
|
|
|
|
*/
|
|
|
|
WS_DLL_PUBLIC void
|
|
|
|
proto_disable_proto_by_name(const char *name);
|
|
|
|
|
2016-12-23 20:20:31 +00:00
|
|
|
/*
|
|
|
|
* Enable a particular protocol by name. This will only enable
|
|
|
|
* protocols that are disabled by default. All others will be ignored.
|
|
|
|
*/
|
|
|
|
WS_DLL_PUBLIC void
|
|
|
|
proto_enable_proto_by_name(const char *name);
|
|
|
|
|
2015-07-14 04:28:49 +00:00
|
|
|
/*
|
|
|
|
* Enable/disable a particular heuristic dissector by name
|
2017-04-08 19:45:19 +00:00
|
|
|
* On success (found the protocol), return TRUE.
|
|
|
|
* On failure (didn't find the protocol), return FALSE.
|
2015-07-14 04:28:49 +00:00
|
|
|
*/
|
2017-04-08 19:45:19 +00:00
|
|
|
WS_DLL_PUBLIC gboolean
|
2015-07-14 04:28:49 +00:00
|
|
|
proto_enable_heuristic_by_name(const char *name, gboolean enable);
|
|
|
|
|
2017-04-08 19:45:19 +00:00
|
|
|
/*
|
|
|
|
* Read the files that enable and disable protocols and heuristic
|
|
|
|
* dissectors. Report errors through the UI.
|
2017-04-09 19:27:57 +00:00
|
|
|
*
|
|
|
|
* This is called by epan_load_settings(); programs should call that
|
|
|
|
* rather than individually calling the routines it calls.
|
2017-04-08 19:45:19 +00:00
|
|
|
*/
|
2017-04-09 19:27:57 +00:00
|
|
|
extern void
|
2017-04-09 01:59:17 +00:00
|
|
|
read_enabled_and_disabled_lists(void);
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Write out the lists of enabled and disabled protocols and heuristic
|
|
|
|
* dissectors to the corresponding files. Report errors through the UI.
|
|
|
|
*/
|
|
|
|
WS_DLL_PUBLIC void
|
|
|
|
save_enabled_and_disabled_lists(void);
|
2017-04-08 19:45:19 +00:00
|
|
|
|
2017-01-19 21:32:51 +00:00
|
|
|
/*
|
|
|
|
* Free the internal structures
|
|
|
|
*/
|
|
|
|
extern void
|
2017-04-09 01:59:17 +00:00
|
|
|
cleanup_enabled_and_disabled_lists(void);
|
2015-07-05 21:31:14 +00:00
|
|
|
|
2011-12-29 00:08:47 +00:00
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif /* __cplusplus */
|
|
|
|
|
|
|
|
#endif /* DISABLED_PROTOS_H */
|