From 1b872b3648180aa042e36dd5b3ff38a03fa131e3 Mon Sep 17 00:00:00 2001 From: Guy Harris Date: Wed, 23 Apr 2003 08:20:06 +0000 Subject: Make "register_tap_listener()" return NULL on success and a "GString *" referring to a GString containing an error message on failure, and don't have it print anything on failure. If it fails, have its Tethereal-tap callers print an error message before exiting, and have its Ethereal callers pop up a dialog box with the error (except in cases where the failure is guaranteed not to be the user's fault, and where we exit, in which case we just print an error message before we exit). In all cases, the error message includes the text of the GString. Fix a scanf format string in the DCE RPC statistics Ethereal tap, so that it properly skips the comma before the filter string. Fix some Ethereal error messages not to say "tethereal". svn path=/trunk/; revision=7542 --- tap.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'tap.h') diff --git a/tap.h b/tap.h index 0677fc8b5b..aba541f47c 100644 --- a/tap.h +++ b/tap.h @@ -1,7 +1,7 @@ /* tap.h * packet tap interface 2002 Ronnie Sahlberg * - * $Id: tap.h,v 1.7 2003/03/06 19:04:28 guy Exp $ + * $Id: tap.h,v 1.8 2003/04/23 08:20:02 guy Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs @@ -42,7 +42,9 @@ extern void tap_queue_init(epan_dissect_t *edt); extern void tap_push_tapped_queue(epan_dissect_t *edt); extern void reset_tap_listeners(void); extern void draw_tap_listeners(gboolean draw_all); -extern int register_tap_listener(char *tapname, void *tapdata, char *fstring, tap_reset_cb tap_reset, tap_packet_cb tap_packet, tap_draw_cb tap_draw); +extern GString *register_tap_listener(char *tapname, void *tapdata, + char *fstring, tap_reset_cb tap_reset, tap_packet_cb tap_packet, + tap_draw_cb tap_draw); extern void remove_tap_listener(void *tapdata); #endif -- cgit v1.2.3