From 099698445b5cd60b00777ae47f68fba620fa975e Mon Sep 17 00:00:00 2001 From: Guy Harris Date: Sun, 24 Jan 2016 17:10:20 -0800 Subject: Move the proto data stuff out of frame_data.[ch]. It's not tied to the frame_data structure any more, so it belongs by itself. Clean up some #includes while we're at it; in particular, frame_data.h doesn't use anything related to tvbuffs, so don't have it gratuitiously include tvbuff.h. Change-Id: Ic32922d4a3840bac47007c5d4c546b8842245e0c Reviewed-on: https://code.wireshark.org/review/13518 Reviewed-by: Guy Harris --- doc/README.dissector | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'doc/README.dissector') diff --git a/doc/README.dissector b/doc/README.dissector index 964c4b0bc5..59fced396d 100644 --- a/doc/README.dissector +++ b/doc/README.dissector @@ -2874,6 +2874,8 @@ persistent data about the packet for the lifetime of the capture (file scope) and to exchange data between dissectors across a single packet (packet scope). It is also used to provide packet data for Decode As dialog (packet scope). +These functions are delcared in . + void p_add_proto_data(wmem_allocator_t *scope, packet_info *pinfo, int proto, guint32 key, void *proto_data) void * @@ -2986,6 +2988,8 @@ Where: module - Returned by the prefs_register_protocol routine menu max_value - The maximum allowed value for a range (0 is the minimum). +These functions are declared in . + An example from packet-beep.c - proto_beep = proto_register_protocol("Blocks Extensible Exchange Protocol", -- cgit v1.2.1