diff options
author | Guy Harris <guy@alum.mit.edu> | 2004-03-23 21:19:58 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2004-03-23 21:19:58 +0000 |
commit | 121f06fab70d77c4babb512924b2b8d3c3921944 (patch) | |
tree | 9dba3131d845040ea0ab402a8b3e4a5147d5d315 /epan/epan.h | |
parent | bf1315c25615bdd7d5ebff4245d8ba37b525871e (diff) |
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.
svn path=/trunk/; revision=10470
Diffstat (limited to 'epan/epan.h')
-rw-r--r-- | epan/epan.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/epan/epan.h b/epan/epan.h index b3efd355cc..3493a7f5a2 100644 --- a/epan/epan.h +++ b/epan/epan.h @@ -1,6 +1,6 @@ /* epan.h * - * $Id: epan.h,v 1.15 2002/10/22 08:44:33 guy Exp $ + * $Id: epan.h,v 1.16 2004/03/23 21:19:56 guy Exp $ * * Ethereal Protocol Analyzer Library * @@ -32,8 +32,10 @@ typedef struct _epan_dissect_t epan_dissect_t; #include "dfilter/dfilter.h" -void epan_init(const char * plugindir, void (register_all_protocols)(void), - void (register_all_handoffs)(void)); +void epan_init(const char * plugindir, void (*register_all_protocols)(void), + void (*register_all_handoffs)(void), + void (*report_open_failure)(const char *, int, gboolean), + void (*report_read_failure)(const char *, int)); void epan_cleanup(void); void epan_conversation_init(void); void epan_circuit_init(void); |