aboutsummaryrefslogtreecommitdiffstats
path: root/ui/gtk/response_time_delay_table.c
diff options
context:
space:
mode:
authorMichael Mann <mmann78@netscape.net>2015-06-23 08:53:17 -0400
committerMichael Mann <mmann78@netscape.net>2015-07-03 23:08:28 +0000
commita8ff1e2778b22ca55db752264eaf864d720ca8dc (patch)
tree1b7182449a95437aa6a0419519c92fcc08ca3aa0 /ui/gtk/response_time_delay_table.c
parent09ea473cee9ef37335f2ef8247da94bc71d12bba (diff)
Create very basic "generic" stat tap API to create a "GUI" independent table.
A few sample tap/dissectors (ANSI/A, ANSI MAP) are also included to test the API. The "GUI output" is a bit raw and could use some "prettying up", but all the basic hooks are there. Telephony "stat grouping" needs to be better alphabetized to properly populate menu (on GTK, probably Qt) Change-Id: I98514171f69c4ab3a304dccb26c71d629703c9ab Reviewed-on: https://code.wireshark.org/review/9110 Reviewed-by: Michael Mann <mmann78@netscape.net>
Diffstat (limited to 'ui/gtk/response_time_delay_table.c')
-rw-r--r--ui/gtk/response_time_delay_table.c38
1 files changed, 20 insertions, 18 deletions
diff --git a/ui/gtk/response_time_delay_table.c b/ui/gtk/response_time_delay_table.c
index e16211414c..7085d39ff9 100644
--- a/ui/gtk/response_time_delay_table.c
+++ b/ui/gtk/response_time_delay_table.c
@@ -27,6 +27,7 @@
#include "epan/packet_info.h"
#include "epan/proto.h"
+#include <epan/stat_tap_ui.h>
#include "ui/simple_dialog.h"
#include "ui/utf8_entities.h"
@@ -55,27 +56,27 @@ enum
};
static const stat_column titles[]={
- {G_TYPE_STRING, LEFT, "Type" },
- {G_TYPE_UINT, RIGHT, "Messages" },
- {G_TYPE_STRING, RIGHT, "Min SRT" },
- {G_TYPE_STRING, RIGHT, "Max SRT" },
- {G_TYPE_STRING, RIGHT, "Avg SRT" },
- {G_TYPE_UINT, RIGHT, "Min in Frame" },
- {G_TYPE_UINT, RIGHT, "Max in Frame" }
+ {G_TYPE_STRING, TAP_ALIGN_LEFT, "Type" },
+ {G_TYPE_UINT, TAP_ALIGN_RIGHT, "Messages" },
+ {G_TYPE_STRING, TAP_ALIGN_RIGHT, "Min SRT" },
+ {G_TYPE_STRING, TAP_ALIGN_RIGHT, "Max SRT" },
+ {G_TYPE_STRING, TAP_ALIGN_RIGHT, "Avg SRT" },
+ {G_TYPE_UINT, TAP_ALIGN_RIGHT, "Min in Frame" },
+ {G_TYPE_UINT, TAP_ALIGN_RIGHT, "Max in Frame" }
};
static const stat_column titles_more[]={
- {G_TYPE_STRING, LEFT, "Type" },
- {G_TYPE_UINT, RIGHT, "Messages" },
- {G_TYPE_STRING, RIGHT, "Min SRT" },
- {G_TYPE_STRING, RIGHT, "Max SRT" },
- {G_TYPE_STRING, RIGHT, "Avg SRT" },
- {G_TYPE_UINT, RIGHT, "Min in Frame" },
- {G_TYPE_UINT, RIGHT, "Max in Frame" },
- {G_TYPE_UINT, RIGHT, "Open Requests" },
- {G_TYPE_UINT, RIGHT, "Discarded Responses" },
- {G_TYPE_STRING, RIGHT, "Repeated Requests" },
- {G_TYPE_STRING, RIGHT, "Repeated Responses"}
+ {G_TYPE_STRING, TAP_ALIGN_LEFT, "Type" },
+ {G_TYPE_UINT, TAP_ALIGN_RIGHT, "Messages" },
+ {G_TYPE_STRING, TAP_ALIGN_RIGHT, "Min SRT" },
+ {G_TYPE_STRING, TAP_ALIGN_RIGHT, "Max SRT" },
+ {G_TYPE_STRING, TAP_ALIGN_RIGHT, "Avg SRT" },
+ {G_TYPE_UINT, TAP_ALIGN_RIGHT, "Min in Frame" },
+ {G_TYPE_UINT, TAP_ALIGN_RIGHT, "Max in Frame" },
+ {G_TYPE_UINT, TAP_ALIGN_RIGHT, "Open Requests" },
+ {G_TYPE_UINT, TAP_ALIGN_RIGHT, "Discarded Responses" },
+ {G_TYPE_STRING, TAP_ALIGN_RIGHT, "Repeated Requests" },
+ {G_TYPE_STRING, TAP_ALIGN_RIGHT, "Repeated Responses"}
};
typedef struct _gtk_rtd_t {
@@ -374,6 +375,7 @@ void register_response_time_delay_tables(gpointer data, gpointer user_data _U_)
rtd_dlg->nparams = G_N_ELEMENTS(rtd_stat_params);
rtd_dlg->params = rtd_stat_params;
+ rtd_dlg->user_data = rtd; /* TODO: Actually use this */
register_param_stat(rtd_dlg, short_name, REGISTER_STAT_GROUP_RESPONSE_TIME);
}