diff options
author | Guy Harris <guy@alum.mit.edu> | 2004-02-21 02:15:07 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2004-02-21 02:15:07 +0000 |
commit | 83634f54c7513d4300cfeb7046ed81ef682a321d (patch) | |
tree | f03010f140c0d14d34e24452b6be237db29f625a /plugins/plugin_api_list.c | |
parent | 58df4b6f4ae1d94a62b02c8d353f065e081feaea (diff) |
Add routines that can be called from dissectors to report file open and
read errors; there are separate implementations for Ethereal (pops up an
alert box) and Tethereal (prints an error message).
Use those routines in the ASN.1 dissector.
svn path=/trunk/; revision=10152
Diffstat (limited to 'plugins/plugin_api_list.c')
-rw-r--r-- | plugins/plugin_api_list.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/plugins/plugin_api_list.c b/plugins/plugin_api_list.c index 04cf89caa2..a82ba8ee44 100644 --- a/plugins/plugin_api_list.c +++ b/plugins/plugin_api_list.c @@ -1,7 +1,7 @@ /* plugin_api_list.c * Used to generate various included files for plugin API * - * $Id: plugin_api_list.c,v 1.27 2004/02/16 18:31:40 sahlberg Exp $ + * $Id: plugin_api_list.c,v 1.28 2004/02/21 02:15:06 guy Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@ethereal.com> @@ -39,6 +39,7 @@ #include "asn1.h" #include "xdlc.h" #include "epan/except.h" +#include "report_err.h" gint check_col(column_info*, gint); void col_clear(column_info*, gint); @@ -407,3 +408,7 @@ int dissect_xdlc_control(tvbuff_t *tvb, int offset, packet_info *pinfo, protocol_t *find_protocol_by_id(int n); guint tvb_strsize(tvbuff_t *tvb, gint offset); + +void report_open_failure(const char *filename, int err, gboolean for_writing); + +void report_read_failure(const char *filename, int err); |