aboutsummaryrefslogtreecommitdiffstats
path: root/gtk/service_response_time_table.h
blob: d98e2414bed7aa7759aa165c866f74447e2955d6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
/* 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.2 2003/09/05 10:26:44 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;
	GtkWidget *menu;
	char *filter_string; /* append procedure number (%d) to this string 
				to create a display filter */
	int num_procs;
	srt_procedure_t *procedures;
} srt_stat_table;

void init_srt_table(srt_stat_table *rst, int num_procs, GtkWidget *vbox, char *filter_string);

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);