aboutsummaryrefslogtreecommitdiffstats
path: root/gtk/hostlist_table.h
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2004-06-01 23:00:24 +0000
committerGuy Harris <guy@alum.mit.edu>2004-06-01 23:00:24 +0000
commitd3b788f2474090845bbaacc3f0460f5449dfc21d (patch)
treea3e8d257c8fc050aec783ccdad0ab75e2cec5f46 /gtk/hostlist_table.h
parent66f18e8c57963a743aa87e373bee27adf26e203b (diff)
Make the definition of "add_hostlist_table_data()" match its
declaration. Give the address and port arguments to "add_hostlist_table_data()" appropriate names and Doxygen comments (they're not a source address and port, they're just an address and port), and do the same for the address and port members of a "hostlist_talker_t". Get rid of extra unnecessary variables in "add_hostlist_table_data()". Clean up indentation. svn path=/trunk/; revision=11066
Diffstat (limited to 'gtk/hostlist_table.h')
-rw-r--r--gtk/hostlist_table.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/gtk/hostlist_table.h b/gtk/hostlist_table.h
index ca4a6f05d4..37d2471775 100644
--- a/gtk/hostlist_table.h
+++ b/gtk/hostlist_table.h
@@ -2,7 +2,7 @@
* modified from endpoint_talkers_table 2003 Ronnie Sahlberg
* Helper routines common to all host talkers taps.
*
- * $Id: hostlist_table.h,v 1.4 2004/06/01 21:56:04 ulfl Exp $
+ * $Id: hostlist_table.h,v 1.5 2004/06/01 23:00:24 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
@@ -37,10 +37,10 @@ typedef enum {
/** Hostlist information */
typedef struct _hostlist_talker_t {
- address src_address; /**< source address */
+ address address; /**< source address */
SAT_E sat; /**< address type */
guint32 port_type; /**< port_type (e.g. PT_TCP) */
- guint32 src_port; /**< source port */
+ guint32 port; /**< source port */
guint32 rx_frames; /**< number of received packets */
guint32 tx_frames; /**< number of transmitted packets */
@@ -53,7 +53,7 @@ typedef struct _hostlist_table {
char *name; /**< the name of the table */
GtkWidget *win; /**< GTK window */
GtkWidget *page_lb; /**< label */
- GtkWidget *scrolled_window; /**< the scrolled window */
+ GtkWidget *scrolled_window; /**< the scrolled window */
GtkCList *table; /**< the GTK table */
GtkWidget *menu; /**< context menu */
gboolean has_ports; /**< table has ports */
@@ -86,13 +86,13 @@ extern void init_hostlist_table(gboolean hide_ports, char *table_name, char *tap
/** Add some data to the table.
*
* @param hl the table to add the data to
- * @param src source address
- * @param src_port source port
+ * @param addr address
+ * @param port port
* @param sender TRUE, if this is a sender
* @param num_frames number of packets
* @param num_bytes number of bytes
* @param sat address type
* @param port_type the port type (e.g. PT_TCP)
*/
-void add_hostlist_table_data(hostlist_table *hl, address *src,
- guint32 src_port, gboolean sender, int num_frames, int num_bytes, SAT_E sat, int port_type);
+void add_hostlist_table_data(hostlist_table *hl, address *addr,
+ guint32 port, gboolean sender, int num_frames, int num_bytes, SAT_E sat, int port_type);