aboutsummaryrefslogtreecommitdiffstats
path: root/gtk/proto_draw.h
diff options
context:
space:
mode:
authorStephen Fisher <steve@stephen-fisher.com>2006-11-14 22:35:22 +0000
committerStephen Fisher <steve@stephen-fisher.com>2006-11-14 22:35:22 +0000
commit90303fb17f8bb45b6955c80856907cdfeb87cd86 (patch)
tree91af0265b418e44db60f65011b22c56b72a6fb07 /gtk/proto_draw.h
parentdd26a7021b0101cbfa469f1a752464740a2f99e7 (diff)
downloadwireshark-90303fb17f8bb45b6955c80856907cdfeb87cd86.tar.gz
wireshark-90303fb17f8bb45b6955c80856907cdfeb87cd86.tar.bz2
wireshark-90303fb17f8bb45b6955c80856907cdfeb87cd86.zip
New feature to automatically highlight the field found when doing a find.
This works for both string and hex searches. This resolves feature request bug #776. svn path=/trunk/; revision=19897
Diffstat (limited to 'gtk/proto_draw.h')
-rw-r--r--gtk/proto_draw.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/gtk/proto_draw.h b/gtk/proto_draw.h
index d49930c03f..094b0bf0a9 100644
--- a/gtk/proto_draw.h
+++ b/gtk/proto_draw.h
@@ -102,6 +102,24 @@ extern void add_byte_views(epan_dissect_t *edt, GtkWidget *tree_view,
*/
extern gboolean byte_view_select(GtkWidget *widget, GdkEventButton *event);
+/** This highlights the field in the proto tree that is at position byte
+ *
+ * @param tvb the current tvbuff
+ * @param byte the byte offset within the packet to highlight
+ * @param tree_view the current tree_view
+ * @param tree the current tree
+ * @return TRUE if highlighting was successful
+ */
+#if GTK_MAJOR_VERSION < 2
+gboolean
+highlight_field(tvbuff_t *tvb, gint byte, GtkCTree *ctree,
+ proto_tree *tree);
+#else
+gboolean
+highlight_field(tvbuff_t *tvb, gint byte, GtkTreeView *tree_view,
+ proto_tree *tree);
+#endif
+
/** Callback for "Export Selected Packet Bytes" operation.
*
* @param w unused