GSM SMS: follow-up of gd65b7d5
[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  * Item in a list of disabled protocols.
33  */
34 typedef struct {
35   char *name;           /* protocol name */
36 } protocol_def;
37
38 /*
39  * Read in a list of disabled protocols.
40  *
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
46  * the file.
47  */
48 WS_DLL_PUBLIC void
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);
53
54 /*
55  * Disable protocols as per the stored configuration
56  */
57 WS_DLL_PUBLIC void
58 set_disabled_protos_list(void);
59
60 /*
61  * Write out a list of disabled protocols.
62  *
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.
67  */
68 WS_DLL_PUBLIC void
69 save_disabled_protos_list(char **pref_path_return, int *errno_return);
70
71 #ifdef __cplusplus
72 }
73 #endif /* __cplusplus */
74
75 #endif /* DISABLED_PROTOS_H */