diff options
author | Peter Wu <peter@lekensteyn.nl> | 2015-01-31 02:26:57 +0100 |
---|---|---|
committer | Alexis La Goutte <alexis.lagoutte@gmail.com> | 2015-01-31 08:24:59 +0000 |
commit | 6284040623f87d7a4b8323b51538fa4baa1d57a3 (patch) | |
tree | be9fdd8ba5aa4be13a9c043266ee6f66ed60aca3 /doc/README.dissector | |
parent | c7717aed9c29a027c8e2324b28809ed705bff8c3 (diff) |
README.dissector: fixed p_add_proto_data params
frame_data has long been gone. struct _packet_info is the same as
packet_info, just use that for brevity.
Change-Id: Ieb02bf6b642d728a7f80087f5cd750b9691e34e9
Reviewed-on: https://code.wireshark.org/review/6865
Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com>
Diffstat (limited to 'doc/README.dissector')
-rw-r--r-- | doc/README.dissector | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/doc/README.dissector b/doc/README.dissector index 3fdc91af17..61384b5df4 100644 --- a/doc/README.dissector +++ b/doc/README.dissector @@ -2710,15 +2710,15 @@ 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). void -p_add_proto_data(wmem_allocator_t *scope, frame_data *fd, int proto, guint32 key, void *proto_data) +p_add_proto_data(wmem_allocator_t *scope, packet_info *pinfo, int proto, guint32 key, void *proto_data) void * -p_get_proto_data(wmem_allocator_t *scope, frame_data *fd, int proto, guint32 key) +p_get_proto_data(wmem_allocator_t *scope, packet_info *pinfo, int proto, guint32 key) Where: scope - Lifetime of the data to be stored, typically wmem_file_scope() or pinfo->pool (packet scope). Must match scope of data allocated. - fd - The fd pointer in the pinfo structure, pinfo->fd + pinfo - The packet info pointer. proto - Protocol id returned by the proto_register_protocol call during initialization key - key associated with 'proto_data' |