diff options
author | jake <jake@f5534014-38df-0310-8fa8-9805f1628bb7> | 2009-02-24 17:24:03 +0000 |
---|---|---|
committer | jake <jake@f5534014-38df-0310-8fa8-9805f1628bb7> | 2009-02-24 17:24:03 +0000 |
commit | 3129fdd4379c5ae609af165581276a54e155fbad (patch) | |
tree | ddb34ebadd17797a88d9fa9f763c0329f0e30a3a /epan/proto.h | |
parent | 164e8a905733e70a3f55e85ed14419050192a489 (diff) |
Add posibility to mark protocol as private. This prevents inadvertent Wiki access.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@27533 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'epan/proto.h')
-rw-r--r-- | epan/proto.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/epan/proto.h b/epan/proto.h index c1c5867dd8..2ef186e1b1 100644 --- a/epan/proto.h +++ b/epan/proto.h @@ -1312,6 +1312,17 @@ proto_item_fill_label(field_info *fi, gchar *label_str); extern int proto_register_protocol(const char *name, const char *short_name, const char *filter_name); +/** Mark protocol as private + @param proto_id the handle of the protocol */ +extern void +proto_mark_private(int proto_id); + +/** Return if protocol is private + @param proto_id the handle of the protocol + @return TRUE if it is a private protocol, FALSE is not. */ +extern gboolean +proto_is_private(int proto_id); + /** This is the type of function can be registered to get called whenever a given field was not found but a its prefix is matched it can be used to procrastinate the hf array registration |