diff options
author | Guy Harris <guy@alum.mit.edu> | 2004-06-03 21:46:27 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2004-06-03 21:46:27 +0000 |
commit | 64d5806cecb44c4f0300a5bc3de1cbe2a22b2151 (patch) | |
tree | 7b7174dc8dc7d1e441cc926da21c7eb6c0a3b1b0 /gtk/hostlist_table.h | |
parent | dd2b4bd39373b301c6f446e658a16c19667e1b45 (diff) |
Make static some routines and variables not used outside the source file
defining them.
Move declarations of some callbacks outside the source files using them
into the appropriate header, and arrange that the appropriate header is
included by those source files.
Move the SAT_E definition into a "sat.h" file, included both by
"endpoint_talkers_table.h" and "hostlist_table.h", so that both of the
latter headers can be included by the same file ("menu.c" has to include
both, as per the change in the previous paragraph).
svn path=/trunk/; revision=11096
Diffstat (limited to 'gtk/hostlist_table.h')
-rw-r--r-- | gtk/hostlist_table.h | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/gtk/hostlist_table.h b/gtk/hostlist_table.h index a63aacab63..f0d13ca719 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.6 2004/06/02 06:44:40 ulfl Exp $ + * $Id: hostlist_table.h,v 1.7 2004/06/03 21:46:27 guy Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@ethereal.com> @@ -23,18 +23,12 @@ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ +#include "sat.h" + /** @file * Hostlist definitions. */ -/** Address type */ -typedef enum { - SAT_NONE, /**< no address type */ - SAT_ETHER, /**< ethernet */ - SAT_FDDI, /**< fddi */ - SAT_TOKENRING /**< token ring */ -} SAT_E; - /** Hostlist information */ typedef struct _hostlist_talker_t { address address; /**< address */ @@ -83,6 +77,13 @@ extern void register_hostlist_table(gboolean hide_ports, char *table_name, char */ extern void init_hostlist_table(gboolean hide_ports, char *table_name, char *tap_name, char *filter, void *packet_func); +/** Callback for "Endpoints" statistics item. + * + * @param w unused + * @param d unused + */ +extern void init_hostlist_notebook_cb(GtkWidget *w, gpointer d); + /** Add some data to the table. * * @param hl the table to add the data to |