aboutsummaryrefslogtreecommitdiffstats
path: root/epan/stat_tap_ui.h
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2018-05-13 13:20:33 -0700
committerGuy Harris <guy@alum.mit.edu>2018-05-13 20:21:14 +0000
commitafad14dcfec28d937f5c375831af8e2d886e819f (patch)
tree4c0dc805b425c13394e71ec9e7a5e42986c711b8 /epan/stat_tap_ui.h
parent7d1c534ac9b596b283bed2caaf7aad59625159f2 (diff)
Get rid of some GTK+-only stuff.
Change-Id: I85806476246a567f747e3911e3d15716e9cfe06b Reviewed-on: https://code.wireshark.org/review/27514 Reviewed-by: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'epan/stat_tap_ui.h')
-rw-r--r--epan/stat_tap_ui.h15
1 files changed, 4 insertions, 11 deletions
diff --git a/epan/stat_tap_ui.h b/epan/stat_tap_ui.h
index 20eb590d7d..dc670c3c36 100644
--- a/epan/stat_tap_ui.h
+++ b/epan/stat_tap_ui.h
@@ -116,10 +116,6 @@ typedef struct _stat_tap_table
} stat_tap_table;
-typedef void (*stat_tap_gui_init_cb)(stat_tap_table* stat_table, void* gui_data); /* GTK+ only? */
-typedef void (*stat_tap_gui_reset_cb)(stat_tap_table* stat_table, void* gui_data); /* GTK+ only? */
-typedef void (*stat_tap_gui_free_cb)(stat_tap_table* stat_table, void* gui_data); /* GTK+ only? */
-
/*
* UI information for a tap with a table-based UI.
*/
@@ -128,7 +124,7 @@ typedef struct _stat_tap_table_ui {
const char *title; /* title of statistic */
const char *tap_name;
const char *cli_string; /* initial part of the "-z" argument for statistic */
- void (* stat_tap_init_cb)(struct _stat_tap_table_ui* new_stat, stat_tap_gui_init_cb gui_callback, void* gui_data);
+ void (* stat_tap_init_cb)(struct _stat_tap_table_ui* new_stat);
tap_packet_cb packet_func;
void (* stat_tap_reset_table_cb)(stat_tap_table* table);
void (* stat_tap_free_table_item_cb)(stat_tap_table* table, guint row, guint column, stat_tap_table_item_type* field_data);
@@ -161,13 +157,13 @@ WS_DLL_PUBLIC void register_stat_tap_table_ui(stat_tap_table_ui *ui);
WS_DLL_PUBLIC void stat_tap_iterate_tables(wmem_foreach_func func, gpointer user_data);
WS_DLL_PUBLIC void stat_tap_get_filter(stat_tap_table_ui* new_stat, const char *opt_arg, const char **filter, char** err);
WS_DLL_PUBLIC stat_tap_table* stat_tap_init_table(const char *name, int num_fields, int num_elements,
- const char *filter_string, stat_tap_gui_init_cb gui_callback, void* gui_data);
+ const char *filter_string);
WS_DLL_PUBLIC void stat_tap_add_table(stat_tap_table_ui* new_stat, stat_tap_table* table);
WS_DLL_PUBLIC void stat_tap_init_table_row(stat_tap_table *stat_table, guint table_index, guint num_fields, const stat_tap_table_item_type* fields);
WS_DLL_PUBLIC stat_tap_table_item_type* stat_tap_get_field_data(const stat_tap_table *stat_table, guint table_index, guint field_index);
WS_DLL_PUBLIC void stat_tap_set_field_data(stat_tap_table *stat_table, guint table_index, guint field_index, stat_tap_table_item_type* field_data);
-WS_DLL_PUBLIC void reset_stat_table(stat_tap_table_ui* new_stat, stat_tap_gui_reset_cb gui_callback, void *callback_data);
+WS_DLL_PUBLIC void reset_stat_table(stat_tap_table_ui* new_stat);
WS_DLL_PUBLIC stat_tap_table_ui *stat_tap_by_name(const char *name);
@@ -178,11 +174,8 @@ WS_DLL_PUBLIC stat_tap_table_ui *stat_tap_by_name(const char *name);
* row.
*
* @param new_stat Parent stat_tap_table_ui struct, provided by the dissector.
- * @param gui_callback Per-table callback, run before rows are removed.
- * Provided by the UI.
- * @param callback_data Data for the per-table callback.
*/
-WS_DLL_PUBLIC void free_stat_tables(stat_tap_table_ui* new_stat, stat_tap_gui_free_cb gui_callback, void *callback_data);
+WS_DLL_PUBLIC void free_stat_tables(stat_tap_table_ui* new_stat);
WS_DLL_PUBLIC gboolean process_stat_cmd_arg(char *optstr);