From 7e46a7722c24e5d2fb083bf908c6237246fed327 Mon Sep 17 00:00:00 2001 From: guy Date: Tue, 23 Mar 2004 21:19:58 +0000 Subject: Make "epan_init()" take, as additional arguments, pointers to routines that dissectors should call to report file open and read errors, and have "report_open_failure()" and "report_read_failure()" call through those pointers, rather than being defined and exported by the application using libethereal - instead, the application would define those functions and pass pointers to them to 'epan_init()". Move "report_err.h" to the epan directory, as the functions it declares are now part of the libethereal API. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@10470 f5534014-38df-0310-8fa8-9805f1628bb7 --- alert_box.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'alert_box.h') diff --git a/alert_box.h b/alert_box.h index 667b8101ed..807f1106f0 100644 --- a/alert_box.h +++ b/alert_box.h @@ -2,7 +2,7 @@ * Routines to put up various "standard" alert boxes used in multiple * places * - * $Id: alert_box.h,v 1.3 2004/02/11 01:37:11 guy Exp $ + * $Id: alert_box.h,v 1.4 2004/03/23 21:19:55 guy Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs @@ -39,6 +39,12 @@ extern "C" { extern void open_failure_alert_box(const char *filename, int err, gboolean for_writing); +/* + * Alert box for a failed attempt to read a file. + * "err" is assumed to be a UNIX-style errno. + */ +extern void read_failure_alert_box(const char *filename, int err); + /* * Alert box for a failed attempt to write to a file. * "err" is assumed to be a UNIX-style errno. -- cgit v1.2.3