diff options
author | David Perry <boolean263@protonmail.com> | 2023-09-26 15:15:38 -0400 |
---|---|---|
committer | Gerald Combs <gerald@wireshark.org> | 2023-09-27 01:13:04 +0000 |
commit | 7ea5bbb53baa2aab89a601690333a230a3b05f97 (patch) | |
tree | b30b4145472676a6de3870b2664342f1e4e69331 /cmake/modules | |
parent | 051c8cb7b3276cfe5ef7aa491bbd82110de912b2 (diff) |
Change some `wmem_packet_scope()` to `pinfo->pool`
As requested [here][1] by @eapache, help with removing calls to
`wmem_packet_scope()` in favour of references to `pinfo->pool`.
* Plugins chosen semi-alphabetically.
* When a calling function already has a `pinfo` argument, use that.
* Remove `_U_` from its signature if it was there.
* If a function seems narrowly focused on getting and (possibly)
returning memory, change the function signature to take a
`wmem_allocator_t *`.
* If it seems more focused on packet-based operations, pass in a
`packet_info *` instead and use `pinfo->pool` within.
* Some of the files in this MR still have references to
`wmem_packet_scope()` where it would take significant work to remove.
These will need revisiting later.
[1]: https://www.wireshark.org/lists/wireshark-dev/202107/msg00052.html
Diffstat (limited to 'cmake/modules')
0 files changed, 0 insertions, 0 deletions