aboutsummaryrefslogtreecommitdiffstats
path: root/file.h
diff options
context:
space:
mode:
authorAnders Broman <anders.broman@ericsson.com>2011-01-31 12:19:15 +0000
committerAnders Broman <anders.broman@ericsson.com>2011-01-31 12:19:15 +0000
commitb7527dd063ca82726c88981f9d61eb951a2b9a12 (patch)
tree5d7b7b9c4e230107bb89622f2b77c3429ab90ba1 /file.h
parent502ddd6cdb42f2dd779e9c16a5a9594ad5e0378e (diff)
From Cal Turney:
Bug 5621 - With String in Packet details searches, highlight row in tree https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=5621 svn path=/trunk/; revision=35718
Diffstat (limited to 'file.h')
-rw-r--r--file.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/file.h b/file.h
index c2d319e465..e30a064d03 100644
--- a/file.h
+++ b/file.h
@@ -71,6 +71,14 @@ typedef enum {
typedef void (*cf_callback_t) (gint event, gpointer data, gpointer user_data);
+typedef struct {
+ const char *string;
+ size_t string_len;
+ capture_file *cf;
+ gboolean frame_matched;
+ field_info *finfo;
+} match_data;
+
extern void
cf_callback_add(cf_callback_t func, gpointer user_data);
@@ -405,6 +413,17 @@ gboolean cf_find_packet_protocol_tree(capture_file *cf, const char *string,
search_direction dir);
/**
+ * Find field with a label that contains text string cfile->sfilter.
+ *
+ * @param cf the capture file
+ * @param tree the protocol tree
+ * @param mdata the first field (mdata->finfo) that matched the string
+ * @return TRUE if a packet was found, FALSE otherwise
+ */
+extern gboolean cf_find_string_protocol_tree(capture_file *cf, proto_tree *tree,
+ match_data *mdata);
+
+/**
* Find packet whose summary line contains a specified text string.
*
* @param cf the capture file