From 4df2c4abd920cc579c6f5691670d4fc0e75c130a Mon Sep 17 00:00:00 2001 From: Guy Harris Date: Sat, 1 Jan 2005 12:49:54 +0000 Subject: Make the signatures of functions passed to "register_tap_listener()" match what "register_tap_listener()" expects (rather than squelching warnings about the differences by casting function pointers to "void *"). Make static some functions not used outside the module in which they're defined. svn path=/trunk/; revision=12913 --- gtk/hostlist_table.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'gtk/hostlist_table.h') diff --git a/gtk/hostlist_table.h b/gtk/hostlist_table.h index 7076c42187..73ae442e50 100644 --- a/gtk/hostlist_table.h +++ b/gtk/hostlist_table.h @@ -66,7 +66,7 @@ typedef struct _hostlist_table { * @param filter the optional filter name or NULL * @param packet_func the function to be called for each incoming packet */ -extern void register_hostlist_table(gboolean hide_ports, char *table_name, char *tap_name, char *filter, void *packet_func); +extern void register_hostlist_table(gboolean hide_ports, char *table_name, char *tap_name, char *filter, tap_packet_cb packet_func); /** Init the hostlist table for the single hostlist window. * @@ -76,7 +76,7 @@ extern void register_hostlist_table(gboolean hide_ports, char *table_name, char * @param filter the optional filter name or NULL * @param packet_func the function to be called for each incoming packet */ -extern void init_hostlist_table(gboolean hide_ports, char *table_name, char *tap_name, char *filter, void *packet_func); +extern void init_hostlist_table(gboolean hide_ports, char *table_name, char *tap_name, char *filter, tap_packet_cb packet_func); /** Callback for "Endpoints" statistics item. * @@ -96,5 +96,5 @@ extern void init_hostlist_notebook_cb(GtkWidget *w, gpointer d); * @param sat address type * @param port_type the port type (e.g. PT_TCP) */ -void add_hostlist_table_data(hostlist_table *hl, address *addr, +void add_hostlist_table_data(hostlist_table *hl, const address *addr, guint32 port, gboolean sender, int num_frames, int num_bytes, SAT_E sat, int port_type); -- cgit v1.2.3