From Martin Regner: fix dissection of non-standard parameters.
[obnox/wireshark/wip.git] / gtk / service_response_time_table.h
1 /* service_response_time_table.h
2  * service_response_time_table   2003 Ronnie Sahlberg
3  * Helper routines common to all service response time statistics
4  * tap.
5  *
6  * $Id: service_response_time_table.h,v 1.2 2003/09/05 10:26:44 sahlberg Exp $
7  *
8  * Ethereal - Network traffic analyzer
9  * By Gerald Combs <gerald@ethereal.com>
10  * Copyright 1998 Gerald Combs
11  * 
12  * This program is free software; you can redistribute it and/or
13  * modify it under the terms of the GNU General Public License
14  * as published by the Free Software Foundation; either version 2
15  * of the License, or (at your option) any later version.
16  * 
17  * This program is distributed in the hope that it will be useful,
18  * but WITHOUT ANY WARRANTY; without even the implied warranty of
19  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
20  * GNU General Public License for more details.
21  * 
22  * You should have received a copy of the GNU General Public License
23  * along with this program; if not, write to the Free Software
24  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
25  */
26
27 #include <gtk/gtk.h>
28 #include "epan/nstime.h"
29
30
31 typedef struct _srt_procedure_t {
32         char *entries[6];
33         int num;
34         nstime_t min;
35         nstime_t max;
36         nstime_t tot;
37 } srt_procedure_t;
38
39 typedef struct _srt_stat_table {
40         GtkWidget *scrolled_window;
41         GtkCList *table;
42         GtkWidget *menu;
43         char *filter_string; /* append procedure number (%d) to this string 
44                                 to create a display filter */
45         int num_procs;
46         srt_procedure_t *procedures;
47 } srt_stat_table;
48
49 void init_srt_table(srt_stat_table *rst, int num_procs, GtkWidget *vbox, char *filter_string);
50
51 void init_srt_table_row(srt_stat_table *rst, int index, char *procedure);
52
53 void add_srt_table_data(srt_stat_table *rst, int index, nstime_t *req_time, packet_info *pinfo);
54
55 void draw_srt_table_data(srt_stat_table *rst);
56
57 void reset_srt_table_data(srt_stat_table *rst);
58
59 void free_srt_table_data(srt_stat_table *rst);
60