aboutsummaryrefslogtreecommitdiffstats
path: root/epan/proto.h
diff options
context:
space:
mode:
authorAndersBroman <anders.broman@ericsson.com>2016-09-26 15:04:34 +0200
committerAnders Broman <a.broman58@gmail.com>2016-09-27 03:39:28 +0000
commit1a384ef4161470bf4a1af18da9b0b98cbc9c7f56 (patch)
tree4c1e9aa565b78152d82fd4a946f2359805e16f75 /epan/proto.h
parent0a45d13652cd0f34a9cabfbc6dbbdc8faaaf3554 (diff)
[proto.c] Add proto_find_first_finfo() to find first occurance of a field.
Change-Id: I11f50d7b00851880f77067260e2496175d227e76 Reviewed-on: https://code.wireshark.org/review/17937 Petri-Dish: Anders Broman <a.broman58@gmail.com> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Anders Broman <a.broman58@gmail.com>
Diffstat (limited to 'epan/proto.h')
-rw-r--r--epan/proto.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/epan/proto.h b/epan/proto.h
index 63c380a6c7..18d8161265 100644
--- a/epan/proto.h
+++ b/epan/proto.h
@@ -2333,6 +2333,14 @@ WS_DLL_PUBLIC gboolean proto_tracking_interesting_fields(const proto_tree *tree)
@return GPtrArry pointer */
WS_DLL_PUBLIC GPtrArray* proto_find_finfo(proto_tree *tree, const int hfindex);
+/** Return GPtrArray* of field_info pointer for first hfindex that appear in
+tree. Works with any tree, primed or unprimed, and is slower than
+proto_get_finfo_ptr_array because it has to search through the tree.
+@param tree tree of interest
+@param hfindex index of field info of interest
+@return GPtrArry pointer */
+WS_DLL_PUBLIC GPtrArray* proto_find_first_finfo(proto_tree *tree, const int hfindex);
+
/** Return GPtrArray* of field_info pointers containg all hfindexes that appear
in tree.
@param tree tree of interest