diff options
author | Michael Mann <mmann78@netscape.net> | 2014-07-23 13:38:55 -0400 |
---|---|---|
committer | Gerald Combs <gerald@wireshark.org> | 2014-07-26 20:59:42 +0000 |
commit | 31ecdf5b06bff3bb2e706e840c28c519698e6f67 (patch) | |
tree | 71b3e59889e862560412d317df71113f66b094b6 /ui/gtk/conversations_table.h | |
parent | 507d07eda6ad562d4567cf0ee83aa9b03997beca (diff) |
Refactor "common" Conversation table functionality.
Refactor (non-GUI) conversation table functionality from gtk/Qt to epan. Also refactor "common GUI" conversation table functionality.
The idea is to not have to modify the GUI when a dissector adds a new "conversation type"
Change-Id: I11f08d0d7edd631218663ba4b902c4a4c849acda
Reviewed-on: https://code.wireshark.org/review/3113
Reviewed-by: Gerald Combs <gerald@wireshark.org>
Diffstat (limited to 'ui/gtk/conversations_table.h')
-rw-r--r-- | ui/gtk/conversations_table.h | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/ui/gtk/conversations_table.h b/ui/gtk/conversations_table.h index 582af54d3c..e4062b5327 100644 --- a/ui/gtk/conversations_table.h +++ b/ui/gtk/conversations_table.h @@ -25,7 +25,8 @@ #define __CONVERSATIONS_TABLE_H__ #include <epan/conv_id.h> -#include <ui/conversation_hash.h> +#include <epan/conversation_table.h> +#include <ui/conversation_ui.h> /** @file * Conversation definitions. @@ -52,19 +53,12 @@ typedef struct _conversations_table { int reselection_idx; /**< conversation index to reselect */ } conversations_table; -/** Register the conversation table for the multiple conversation window. - * - * @param filter the optional filter name or NULL - * @param packet_func the function to be called for each incoming packet - */ -extern void register_conversation_table(conversation_type_e conv_type, const char *filter, tap_packet_cb packet_func); - /** Init the conversation table for the single conversation window. * * @param filter the optional filter name or NULL * @param packet_func the function to be called for each incoming packet */ -extern void init_conversation_table(conversation_type_e conv_type, const char *filter, tap_packet_cb packet_func); +extern void init_conversation_table(struct register_ct* ct, const char *filter); /** Callback for "Conversations" statistics item. * @@ -73,4 +67,10 @@ extern void init_conversation_table(conversation_type_e conv_type, const char *f */ extern void init_conversation_notebook_cb(GtkWidget *widget, gpointer data); +/** Function called to instantiate the "GTK conversation table display" + * + * @param table conversation table to be created + */ +extern void conversation_endpoint_cb(register_ct_t* table); + #endif /* __CONVERSATIONS_TABLE_H__ */ |