diff options
-rw-r--r-- | epan/packet.c | 5 | ||||
-rw-r--r-- | epan/packet.h | 1 |
2 files changed, 6 insertions, 0 deletions
diff --git a/epan/packet.c b/epan/packet.c index 07f201a2c8..c2db651a76 100644 --- a/epan/packet.c +++ b/epan/packet.c @@ -1865,6 +1865,11 @@ void register_postdissector(dissector_handle_t handle) { num_of_postdissectors++; } +boolean +have_postdissector() { + return (num_of_postdissectors > 0); +} + extern void call_all_postdissectors(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) { guint i; for(i=0;i<num_of_postdissectors;i++) { diff --git a/epan/packet.h b/epan/packet.h index 0ccb278576..ae15b7254d 100644 --- a/epan/packet.h +++ b/epan/packet.h @@ -405,6 +405,7 @@ extern void dissector_dump_decodes(void); * dissector has been called. */ extern void register_postdissector(dissector_handle_t); +extern boolean have_postdissector(); extern void call_all_postdissectors(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree); #ifdef __cplusplus |