aboutsummaryrefslogtreecommitdiffstats
path: root/epan/proto.h
diff options
context:
space:
mode:
authorStig Bjørlykke <stig@bjorlykke.org>2011-10-04 10:12:55 +0000
committerStig Bjørlykke <stig@bjorlykke.org>2011-10-04 10:12:55 +0000
commit21dbaea38718c2a549cacc22164cd7ae3f9b498b (patch)
treeb589e60f7d61875937fc56939e033c717c928871 /epan/proto.h
parent6a847b1f308cbe63b433be33b53f8b8485a7687e (diff)
Add proto_unregister_field().
This can be used to unregister fields registered in dissector UAT's. svn path=/trunk/; revision=39248
Diffstat (limited to 'epan/proto.h')
-rw-r--r--epan/proto.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/epan/proto.h b/epan/proto.h
index 799c770bd2..3f73af9c56 100644
--- a/epan/proto.h
+++ b/epan/proto.h
@@ -1580,6 +1580,12 @@ extern void proto_initialize_all_prefixes(void);
extern void
proto_register_field_array(const int parent, hf_register_info *hf, const int num_records);
+/** Unregister an already registered field.
+ @param parent the protocol handle from proto_register_protocol()
+ @param hf_id the field to unregister */
+extern void
+proto_unregister_field (const int parent, gint hf_id);
+
/** Register a protocol subtree (ett) array.
@param indices array of ett indices
@param num_indices the number of records in indices */