From 0c156fec93e31a8d80653e0288925acf2275111e Mon Sep 17 00:00:00 2001 From: Guy Harris Date: Mon, 28 Dec 2015 16:18:12 -0800 Subject: There's no "old" stat_tap_table, so remove "new_" from the name. Change-Id: I1a0349d5d9d47210a97ff7a99fb358e59fd70e72 Reviewed-on: https://code.wireshark.org/review/12896 Reviewed-by: Guy Harris --- epan/stat_tap_ui.c | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'epan/stat_tap_ui.c') diff --git a/epan/stat_tap_ui.c b/epan/stat_tap_ui.c index 2061c7cfda..c76ab451fa 100644 --- a/epan/stat_tap_ui.c +++ b/epan/stat_tap_ui.c @@ -167,10 +167,10 @@ void new_stat_tap_get_filter(new_stat_tap_ui* new_stat, const char *opt_arg, con new_stat->new_stat_filter_check_cb(opt_arg, filter, err); } -new_stat_tap_table* new_stat_tap_init_table(const char *name, int num_fields, int num_elements, +stat_tap_table* new_stat_tap_init_table(const char *name, int num_fields, int num_elements, const char *filter_string, new_stat_tap_gui_init_cb gui_callback, void* gui_data) { - new_stat_tap_table* new_table = g_new0(new_stat_tap_table, 1); + stat_tap_table* new_table = g_new0(stat_tap_table, 1); new_table->title = name; new_table->num_elements = num_elements; @@ -184,15 +184,15 @@ new_stat_tap_table* new_stat_tap_init_table(const char *name, int num_fields, in return new_table; } -void new_stat_tap_add_table(new_stat_tap_ui* new_stat, new_stat_tap_table* table) +void new_stat_tap_add_table(new_stat_tap_ui* new_stat, stat_tap_table* table) { if (new_stat->tables == NULL) - new_stat->tables = g_array_new(FALSE, TRUE, sizeof(new_stat_tap_table*)); + new_stat->tables = g_array_new(FALSE, TRUE, sizeof(stat_tap_table*)); g_array_insert_val(new_stat->tables, new_stat->tables->len, table); } -void new_stat_tap_init_table_row(new_stat_tap_table *stat_table, guint table_index, guint num_fields, const stat_tap_table_item_type* fields) +void new_stat_tap_init_table_row(stat_tap_table *stat_table, guint table_index, guint num_fields, const stat_tap_table_item_type* fields) { /* we have discovered a new procedure. Extend the table accordingly */ if(table_index>=stat_table->num_elements){ @@ -209,7 +209,7 @@ void new_stat_tap_init_table_row(new_stat_tap_table *stat_table, guint table_ind } -stat_tap_table_item_type* new_stat_tap_get_field_data(const new_stat_tap_table *stat_table, guint table_index, guint field_index) +stat_tap_table_item_type* new_stat_tap_get_field_data(const stat_tap_table *stat_table, guint table_index, guint field_index) { stat_tap_table_item_type* field_value; g_assert(table_index < stat_table->num_elements); @@ -221,7 +221,7 @@ stat_tap_table_item_type* new_stat_tap_get_field_data(const new_stat_tap_table * return &field_value[field_index]; } -void new_stat_tap_set_field_data(new_stat_tap_table *stat_table, guint table_index, guint field_index, stat_tap_table_item_type* field_data) +void new_stat_tap_set_field_data(stat_tap_table *stat_table, guint table_index, guint field_index, stat_tap_table_item_type* field_data) { stat_tap_table_item_type* field_value; g_assert(table_index < stat_table->num_elements); @@ -236,11 +236,11 @@ void new_stat_tap_set_field_data(new_stat_tap_table *stat_table, guint table_ind void reset_stat_table(new_stat_tap_ui* new_stat, new_stat_tap_gui_reset_cb gui_callback, void *callback_data) { guint i = 0; - new_stat_tap_table *stat_table; + stat_tap_table *stat_table; for (i = 0; i < new_stat->tables->len; i++) { - stat_table = g_array_index(new_stat->tables, new_stat_tap_table*, i); + stat_table = g_array_index(new_stat->tables, stat_tap_table*, i); /* Give GUI the first crack at it before we clean up */ if (gui_callback) @@ -254,12 +254,12 @@ void reset_stat_table(new_stat_tap_ui* new_stat, new_stat_tap_gui_reset_cb gui_c void free_stat_tables(new_stat_tap_ui* new_stat, new_stat_tap_gui_free_cb gui_callback, void *callback_data) { guint i = 0, element, field_index; - new_stat_tap_table *stat_table; + stat_tap_table *stat_table; stat_tap_table_item_type* field_data; for (i = 0; i < new_stat->tables->len; i++) { - stat_table = g_array_index(new_stat->tables, new_stat_tap_table*, i); + stat_table = g_array_index(new_stat->tables, stat_tap_table*, i); /* Give GUI the first crack at it before we clean up */ if (gui_callback) -- cgit v1.2.3