aboutsummaryrefslogtreecommitdiffstats
path: root/gtk/service_response_time_table.h
diff options
context:
space:
mode:
authorRonnie Sahlberg <ronnie_sahlberg@ozemail.com.au>2003-06-21 01:42:46 +0000
committerRonnie Sahlberg <ronnie_sahlberg@ozemail.com.au>2003-06-21 01:42:46 +0000
commitdea1a0a6e46299b799395a0e40fef7beb9839858 (patch)
tree27280932b0a12e10a02acb2ddd18086105e4c1fe /gtk/service_response_time_table.h
parent8d241c2d68ebb33ba0546587118299c1abe3a6ce (diff)
Break out the code for the ahndling of the Service Response Time (formerly known as RoundTripTime) table and change the table into a scrollable
CList. As a first conversion to use the helper routines, convert DCERPC SRT statistics to use the new interface. This prevents some interfaces (SAMR/LSA) that contains a huge number of procedures from creating a huge table that does not fir on the screen. Later changes to the helpers may be to make the different columns sortable or to hide those procedures that has not been seen in the capture. svn path=/trunk/; revision=7903
Diffstat (limited to 'gtk/service_response_time_table.h')
-rw-r--r--gtk/service_response_time_table.h57
1 files changed, 57 insertions, 0 deletions
diff --git a/gtk/service_response_time_table.h b/gtk/service_response_time_table.h
new file mode 100644
index 0000000000..cd28b1afcd
--- /dev/null
+++ b/gtk/service_response_time_table.h
@@ -0,0 +1,57 @@
+/* service_response_time_table.h
+ * service_response_time_table 2003 Ronnie Sahlberg
+ * Helper routines common to all service response time statistics
+ * tap.
+ *
+ * $Id: service_response_time_table.h,v 1.1 2003/06/21 01:42:46 sahlberg Exp $
+ *
+ * Ethereal - Network traffic analyzer
+ * By Gerald Combs <gerald@ethereal.com>
+ * Copyright 1998 Gerald Combs
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <gtk/gtk.h>
+#include "epan/nstime.h"
+
+
+typedef struct _srt_procedure_t {
+ char *entries[6];
+ int num;
+ nstime_t min;
+ nstime_t max;
+ nstime_t tot;
+} srt_procedure_t;
+
+typedef struct _srt_stat_table {
+ GtkWidget *scrolled_window;
+ GtkCList *table;
+ int num_procs;
+ srt_procedure_t *procedures;
+} srt_stat_table;
+
+void init_srt_table(srt_stat_table *rst, int num_procs, GtkWidget *vbox);
+
+void init_srt_table_row(srt_stat_table *rst, int index, char *procedure);
+
+void add_srt_table_data(srt_stat_table *rst, int index, nstime_t *req_time, packet_info *pinfo);
+
+void draw_srt_table_data(srt_stat_table *rst);
+
+void reset_srt_table_data(srt_stat_table *rst);
+
+void free_srt_table_data(srt_stat_table *rst);
+