Fix for bug 848. Make a scrollable window when more than 10 interfaces are listed.
[obnox/wireshark/wip.git] / alert_box.h
1 /* alert_box.h
2  * Routines to put up various "standard" alert boxes used in multiple
3  * places
4  *
5  * $Id$
6  *
7  * Ethereal - Network traffic analyzer
8  * By Gerald Combs <gerald@ethereal.com>
9  * Copyright 1998 Gerald Combs
10  *
11  * This program is free software; you can redistribute it and/or
12  * modify it under the terms of the GNU General Public License
13  * as published by the Free Software Foundation; either version 2
14  * of the License, or (at your option) any later version.
15  *
16  * This program is distributed in the hope that it will be useful,
17  * but WITHOUT ANY WARRANTY; without even the implied warranty of
18  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
19  * GNU General Public License for more details.
20  *
21  * You should have received a copy of the GNU General Public License
22  * along with this program; if not, write to the Free Software
23  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
24  */
25
26 #ifndef __ALERT_BOX_H__
27 #define __ALERT_BOX_H__
28
29 #ifdef __cplusplus
30 extern "C" {
31 #endif /* __cplusplus */
32
33 /*
34  * Alert box for general errors.
35  */
36 extern void failure_alert_box(const char *msg_format, va_list ap);
37
38 /*
39  * Alert box for a failed attempt to open or create a file.
40  * "err" is assumed to be a UNIX-style errno; "for_writing" is TRUE if
41  * the file is being opened for writing and FALSE if it's being opened
42  * for reading.
43  */
44 extern void open_failure_alert_box(const char *filename, int err,
45                                    gboolean for_writing);
46
47 /*
48  * Alert box for a failed attempt to read a file.
49  * "err" is assumed to be a UNIX-style errno.
50  */
51 extern void read_failure_alert_box(const char *filename, int err);
52
53 /*
54  * Alert box for a failed attempt to write to a file.
55  * "err" is assumed to be a UNIX-style errno.
56  */
57 extern void write_failure_alert_box(const char *filename, int err);
58
59 /*
60  * Alert box for an invalid display filter expression.
61  * Assumes "dfilter_error_msg" has been set by "dfilter_compile()" to the
62  * error message for the filter.
63  */
64 extern void bad_dfilter_alert_box(const char *dftext);
65
66 #ifdef __cplusplus
67 }
68 #endif /* __cplusplus */
69
70 #endif /* __ALERT_BOX_H__ */