summaryrefslogtreecommitdiff
path: root/ui/gtk/graph_analysis.h
diff options
context:
space:
mode:
authorGerald Combs <gerald@wireshark.org>2013-10-24 22:52:30 +0000
committerGerald Combs <gerald@wireshark.org>2013-10-24 22:52:30 +0000
commit1a4033b63b1efa75b3d914b9f4d280e8159f0d09 (patch)
tree449d60be59e32bd3572ac78ecbfb0be8ea6bda7b /ui/gtk/graph_analysis.h
parent39fd5f29af411e2bb28d6275188a3692f4b65879 (diff)
downloadwireshark-1a4033b63b1efa75b3d914b9f4d280e8159f0d09.tar.gz
Initial and woefully incomplete flow graph support.
Copy common code from ui/gtk/flow_graph.c and ui/gtk/graph_analysis.[ch] to ui/tap-sequence-analysis.[ch]. Start using the name "sequence" in places. svn path=/trunk/; revision=52824
Diffstat (limited to 'ui/gtk/graph_analysis.h')
-rw-r--r--ui/gtk/graph_analysis.h34
1 files changed, 4 insertions, 30 deletions
diff --git a/ui/gtk/graph_analysis.h b/ui/gtk/graph_analysis.h
index a34c5fa5c4..c734ae32d5 100644
--- a/ui/gtk/graph_analysis.h
+++ b/ui/gtk/graph_analysis.h
@@ -34,35 +34,10 @@
#include <glib.h>
#include <gtk/gtk.h>
#include <epan/address.h>
-
-#define MAX_NUM_NODES 40
-
-/** defines an entry for the graph analysis */
-typedef struct _graph_analysis_item {
- frame_data *fd; /**< Holds the frame number and time information */
- address src_addr;
- guint16 port_src;
- address dst_addr;
- guint16 port_dst;
- gchar *frame_label; /**< the label on top of the arrow */
- gchar *comment; /**< a comment that appears at the left of the graph */
- guint16 conv_num; /**< the conversation number, each conversation will be colored */
- gboolean display; /**< indicate if the packet is displayed or not in the graph */
- guint16 src_node; /**< this is used by graph_analysis.c to identify the node */
- guint16 dst_node; /**< a node is an IP address that will be displayed in columns */
- guint16 line_style; /**< the arrow line width in pixels*/
-} graph_analysis_item_t;
-
-/** defines the graph analysis structure */
-typedef struct _graph_analysis_info {
- int nconv; /**< number of conversations in the list */
- GList* list; /**< list with the graph analysis items */
- GHashTable *ht; /**< hash table for retrieving graph analysis items */
-} graph_analysis_info_t;
+#include <ui/tap-sequence-analysis.h>
/** max number of nodes to display, each node will be an IP address */
#define MAX_NUM_COL_CONV 10
-#define NODE_OVERFLOW MAX_NUM_NODES+1
#define NUM_DISPLAY_ITEMS 1000
typedef struct _display_items {
@@ -70,6 +45,7 @@ typedef struct _display_items {
guint16 port_src;
guint16 port_dst;
gchar *frame_label; /**< the label on top of the arrow */
+ gchar *time_str; /**< timestamp */
gchar *comment; /**< a comment that appears at the left of the graph */
guint16 conv_num; /**< the conversation number, each conversation will be colored */
guint16 src_node; /**< this is used by graph_analysis.c to identify the node */
@@ -119,18 +95,16 @@ typedef void (*destroy_user_data_cb)(void *data);
/** structure that holds general information and the dialog */
typedef struct _graph_analysis_data_t {
/**> graphic data */
- graph_analysis_info_t *graph_info;
+ seq_analysis_info_t *graph_info;
/**> dialog associated data */
graph_analysis_dialog_data_t dlg;
- address nodes[MAX_NUM_NODES];
- guint32 num_nodes;
guint32 num_items;
destroy_user_data_cb on_destroy_user_data; /**< callback info for destroy */
void *data; /**< data to be passes when on destroy */
} graph_analysis_data_t;
-graph_analysis_data_t* graph_analysis_init(void);
+graph_analysis_data_t* graph_analysis_init(seq_analysis_info_t *sainfo);
void graph_analysis_create(graph_analysis_data_t* user_data);
void graph_analysis_update(graph_analysis_data_t* user_data);
void graph_analysis_redraw(graph_analysis_data_t* user_data);