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 * Item in a list of disabled protocols.
35 char *name; /* protocol name */
39 * Read in a list of disabled protocols.
41 * On success, "*pref_path_return" is set to NULL.
42 * On error, "*pref_path_return" is set to point to the pathname of
43 * the file we tried to read - it should be freed by our caller -
44 * and "*open_errno_return" is set to the error if we couldn't open the file
45 * or "*read_errno_return" is set to the error if we got an error reading
49 read_disabled_protos_list(char **gpath_return, int *gopen_errno_return,
50 int *gread_errno_return,
51 char **path_return, int *open_errno_return,
52 int *read_errno_return);
55 * Disable protocols as per the stored configuration
58 set_disabled_protos_list(void);
61 * Write out a list of disabled protocols.
63 * On success, "*pref_path_return" is set to NULL.
64 * On error, "*pref_path_return" is set to point to the pathname of
65 * the file we tried to read - it should be freed by our caller -
66 * and "*errno_return" is set to the error.
69 save_disabled_protos_list(char **pref_path_return, int *errno_return);
73 #endif /* __cplusplus */
75 #endif /* DISABLED_PROTOS_H */