aboutsummaryrefslogtreecommitdiffstats
path: root/gtk/hostlist_table.h
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2005-01-01 12:49:54 +0000
committerGuy Harris <guy@alum.mit.edu>2005-01-01 12:49:54 +0000
commit4df2c4abd920cc579c6f5691670d4fc0e75c130a (patch)
tree1053d7fbe4acc8c7db758d7e679c241bdc981c03 /gtk/hostlist_table.h
parent5da116d531a127468b190e665c87a00197d68b1b (diff)
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
Diffstat (limited to 'gtk/hostlist_table.h')
-rw-r--r--gtk/hostlist_table.h6
1 files changed, 3 insertions, 3 deletions
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);