2 * Declarations of routines for reading and writing the disabled protocols file.
4 * Wireshark - Network traffic analyzer
5 * By Gerald Combs <gerald@wireshark.org>
6 * Copyright 1998 Gerald Combs
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.
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.
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.
24 #ifndef DISABLED_PROTOS_H
25 #define DISABLED_PROTOS_H
29 #endif /* __cplusplus */
32 * Read in a list of disabled protocols.
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
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);
48 * Disable protocols as per the stored configuration
51 set_disabled_protos_list(void);
54 * Write out a list of disabled protocols.
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.
62 save_disabled_protos_list(char **pref_path_return, int *errno_return);
65 * Disable a particular protocol by name
69 proto_disable_proto_by_name(const char *name);
72 * Read in a list of disabled protocols.
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
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);
88 * Disable protocols as per the stored configuration
91 set_disabled_heur_dissector_list(void);
94 * Write out a list of disabled heuristic dissectors.
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.
102 save_disabled_heur_dissector_list(char **pref_path_return, int *errno_return);
105 * Enable/disable a particular heuristic dissector by name
108 proto_enable_heuristic_by_name(const char *name, gboolean enable);
113 #endif /* __cplusplus */
115 #endif /* DISABLED_PROTOS_H */