dmp: Enhance ack framenum links.
[metze/wireshark/wip.git] / epan / disabled_protos.h
1 /* disabled_protos.h
2  * Declarations of routines for reading and writing the disabled protocols file.
3  *
4  * Wireshark - Network traffic analyzer
5  * By Gerald Combs <gerald@wireshark.org>
6  * Copyright 1998 Gerald Combs
7  *
8  *
9  * This program is free software; you can redistribute it and/or
10  * modify it under the terms of the GNU General Public License
11  * as published by the Free Software Foundation; either version 2
12  * of the License, or (at your option) any later version.
13  *
14  * This program is distributed in the hope that it will be useful,
15  * but WITHOUT ANY WARRANTY; without even the implied warranty of
16  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17  * GNU General Public License for more details.
18  *
19  * You should have received a copy of the GNU General Public License
20  * along with this program; if not, write to the Free Software
21  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
22  */
23
24 #ifndef DISABLED_PROTOS_H
25 #define DISABLED_PROTOS_H
26
27 #ifdef __cplusplus
28 extern "C" {
29 #endif /* __cplusplus */
30
31 /*
32  * Read in a list of disabled protocols.
33  *
34  * On success, "*pref_path_return" is set to NULL.
35  * On error, "*pref_path_return" is set to point to the pathname of
36  * the file we tried to read - it should be freed by our caller -
37  * and "*open_errno_return" is set to the error if we couldn't open the file
38  * or "*read_errno_return" is set to the error if we got an error reading
39  * the file.
40  */
41 WS_DLL_PUBLIC void
42 read_disabled_protos_list(char **gpath_return, int *gopen_errno_return,
43                           int *gread_errno_return,
44                           char **path_return, int *open_errno_return,
45                           int *read_errno_return);
46
47 /*
48  * Disable protocols as per the stored configuration
49  */
50 WS_DLL_PUBLIC void
51 set_disabled_protos_list(void);
52
53 /*
54  * Write out a list of disabled protocols.
55  *
56  * On success, "*pref_path_return" is set to NULL.
57  * On error, "*pref_path_return" is set to point to the pathname of
58  * the file we tried to read - it should be freed by our caller -
59  * and "*errno_return" is set to the error.
60  */
61 WS_DLL_PUBLIC void
62 save_disabled_protos_list(char **pref_path_return, int *errno_return);
63
64 /*
65  * Disable a particular protocol by name
66  */
67
68 WS_DLL_PUBLIC void
69 proto_disable_proto_by_name(const char *name);
70
71 /*
72  * Read in a list of disabled protocols.
73  *
74  * On success, "*pref_path_return" is set to NULL.
75  * On error, "*pref_path_return" is set to point to the pathname of
76  * the file we tried to read - it should be freed by our caller -
77  * and "*open_errno_return" is set to the error if we couldn't open the file
78  * or "*read_errno_return" is set to the error if we got an error reading
79  * the file.
80  */
81 WS_DLL_PUBLIC void
82 read_disabled_heur_dissector_list(char **gpath_return, int *gopen_errno_return,
83                           int *gread_errno_return,
84                           char **path_return, int *open_errno_return,
85                           int *read_errno_return);
86
87 /*
88  * Disable protocols as per the stored configuration
89  */
90 WS_DLL_PUBLIC void
91 set_disabled_heur_dissector_list(void);
92
93 /*
94  * Write out a list of disabled heuristic dissectors.
95  *
96  * On success, "*pref_path_return" is set to NULL.
97  * On error, "*pref_path_return" is set to point to the pathname of
98  * the file we tried to read - it should be freed by our caller -
99  * and "*errno_return" is set to the error.
100  */
101 WS_DLL_PUBLIC void
102 save_disabled_heur_dissector_list(char **pref_path_return, int *errno_return);
103
104 /*
105  * Enable/disable a particular heuristic dissector by name
106  */
107 WS_DLL_PUBLIC void
108 proto_enable_heuristic_by_name(const char *name, gboolean enable);
109
110
111 #ifdef __cplusplus
112 }
113 #endif /* __cplusplus */
114
115 #endif /* DISABLED_PROTOS_H */