aboutsummaryrefslogtreecommitdiffstats
path: root/epan/proto.h
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2002-04-18 20:19:10 +0000
committerGuy Harris <guy@alum.mit.edu>2002-04-18 20:19:10 +0000
commit50155a975db15824b162ed5c917858089f993b41 (patch)
tree304918e19c1509cdb72f490c80ffc7b50bd32f34 /epan/proto.h
parent9a1a6bd88802ca73e6f20265b7e157c814bef0cf (diff)
From Phil Williams: support for looking up fields by name.
Clean up some white space, and one non-extern declaration in "epan/proto.h". svn path=/trunk/; revision=5201
Diffstat (limited to 'epan/proto.h')
-rw-r--r--epan/proto.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/epan/proto.h b/epan/proto.h
index 4c4a2aa03d..f18019ed78 100644
--- a/epan/proto.h
+++ b/epan/proto.h
@@ -1,7 +1,7 @@
/* proto.h
* Definitions for protocol display
*
- * $Id: proto.h,v 1.29 2002/04/01 02:00:52 guy Exp $
+ * $Id: proto.h,v 1.30 2002/04/18 20:19:10 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
@@ -176,7 +176,7 @@ extern int proto_item_get_len(proto_item *ti);
extern proto_tree* proto_tree_create_root(void);
/* Mark a field/protocol ID as "interesting". */
-void
+extern void
proto_tree_prime_hfid(proto_tree *tree, int hfid);
/* Clear memory for entry proto_tree. Clears proto_tree struct also. */
@@ -498,6 +498,9 @@ extern char* proto_registrar_get_abbrev(int n);
/* get the header field information based upon a field or protocol id */
extern header_field_info* proto_registrar_get_nth(int hfindex);
+/* get the header field information based upon a field name */
+extern header_field_info* proto_registrar_get_byname(const char *field_name);
+
/* Returns enum ftenum for item # n */
extern int proto_registrar_get_ftype(int n);