c89564d24ea89b62f6c007751017981f619f5402
[metze/wireshark/wip.git] / ui / traffic_table_ui.h
1 /* traffic_table_ui.h
2  * Copied from gtk/conversations_table.h   2003 Ronnie Sahlberg
3  * Helper routines common to all conversations taps.
4  *
5  * Wireshark - Network traffic analyzer
6  * By Gerald Combs <gerald@wireshark.org>
7  * Copyright 1998 Gerald Combs
8  *
9  * SPDX-License-Identifier: GPL-2.0-or-later*/
10
11 #ifndef __CONVERSATION_UI_H__
12 #define __CONVERSATION_UI_H__
13
14 #ifdef __cplusplus
15 extern "C" {
16 #endif /* __cplusplus */
17
18 /** @file
19  *  Conversation and endpoint lists.
20  */
21
22 typedef enum {
23     CONV_COLUMN_SRC_ADDR,
24     CONV_COLUMN_SRC_PORT,
25     CONV_COLUMN_DST_ADDR,
26     CONV_COLUMN_DST_PORT,
27     CONV_COLUMN_PACKETS,
28     CONV_COLUMN_BYTES,
29     CONV_COLUMN_PKT_AB,
30     CONV_COLUMN_BYTES_AB,
31     CONV_COLUMN_PKT_BA,
32     CONV_COLUMN_BYTES_BA,
33     CONV_COLUMN_START,
34     CONV_COLUMN_DURATION,
35     CONV_COLUMN_BPS_AB,
36     CONV_COLUMN_BPS_BA,
37     CONV_NUM_COLUMNS,
38     CONV_INDEX_COLUMN = CONV_NUM_COLUMNS
39 } conversation_column_type_e;
40
41 extern const char *conv_column_titles[CONV_NUM_COLUMNS];
42 extern const char *conv_conn_a_title;
43 extern const char *conv_conn_b_title;
44 extern const char *conv_abs_start_title;
45
46 typedef enum
47 {
48     ENDP_COLUMN_ADDR,
49     ENDP_COLUMN_PORT,
50     ENDP_COLUMN_PACKETS,
51     ENDP_COLUMN_BYTES,
52     ENDP_COLUMN_PKT_AB,
53     ENDP_COLUMN_BYTES_AB,
54     ENDP_COLUMN_PKT_BA,
55     ENDP_COLUMN_BYTES_BA,
56     ENDP_NUM_COLUMNS
57 } endpoint_column_type_e;
58
59 extern const char *endp_column_titles[ENDP_NUM_COLUMNS];
60
61 extern const char *endp_conn_title;
62
63 #ifdef __cplusplus
64 }
65 #endif /* __cplusplus */
66
67 #endif /* __CONVERSATION_UI_H__ */
68
69 /*
70  * Editor modelines
71  *
72  * Local Variables:
73  * c-basic-offset: 4
74  * tab-width: 8
75  * indent-tabs-mode: nil
76  * End:
77  *
78  * ex: set shiftwidth=4 tabstop=8 expandtab:
79  * :indentSize=4:tabSize=8:noTabs=true:
80  */