Wireshark 4.5.0
The Wireshark network protocol analyzer
Loading...
Searching...
No Matches
wmem_scopes.h
Go to the documentation of this file.
1
12#ifndef __WMEM_SCOPES_H__
13#define __WMEM_SCOPES_H__
14
15#include <wsutil/wmem/wmem.h>
16
17#ifdef __cplusplus
18extern "C" {
19#endif /* __cplusplus */
20
26WS_DLL_PUBLIC
28wmem_epan_scope(void);
29
37WS_DLL_PUBLIC
40
41WS_DLL_LOCAL
42void
43wmem_enter_packet_scope(void);
44
45WS_DLL_LOCAL
46void
47wmem_leave_packet_scope(void);
48
54WS_DLL_PUBLIC
56wmem_file_scope(void);
57
58WS_DLL_LOCAL
59void
60wmem_enter_file_scope(void);
61
62WS_DLL_LOCAL
63void
64wmem_leave_file_scope(void);
65
66/* Scope Management */
67
68WS_DLL_PUBLIC
69void
70wmem_init_scopes(void);
71
72WS_DLL_PUBLIC
73void
74wmem_cleanup_scopes(void);
75
76#ifdef __cplusplus
77}
78#endif /* __cplusplus */
79
80#endif /* __WMEM_SCOPES_H__ */
81
82/*
83 * Editor modelines - https://www.wireshark.org/tools/modelines.html
84 *
85 * Local variables:
86 * c-basic-offset: 4
87 * tab-width: 8
88 * indent-tabs-mode: nil
89 * End:
90 *
91 * vi: set shiftwidth=4 tabstop=8 expandtab:
92 * :indentSize=4:tabSize=8:noTabs=true:
93 */
Definition wmem_allocator.h:27
WS_DLL_PUBLIC wmem_allocator_t * wmem_file_scope(void)
Fetch the current file scope.
Definition wmem_scopes.c:75
WS_DLL_PUBLIC wmem_allocator_t * wmem_epan_scope(void)
Fetch the current epan scope.
Definition wmem_scopes.c:108
WS_DLL_PUBLIC wmem_allocator_t * wmem_packet_scope(void)
Fetch the current packet scope.
Definition wmem_scopes.c:46