Wireshark  4.3.0
The Wireshark network protocol analyzer
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
18 extern "C" {
19 #endif /* __cplusplus */
20 
26 WS_DLL_PUBLIC
28 wmem_epan_scope(void);
29 
37 WS_DLL_PUBLIC
39 wmem_packet_scope(void);
40 
41 WS_DLL_LOCAL
42 void
43 wmem_enter_packet_scope(void);
44 
45 WS_DLL_LOCAL
46 void
47 wmem_leave_packet_scope(void);
48 
54 WS_DLL_PUBLIC
56 wmem_file_scope(void);
57 
58 WS_DLL_LOCAL
59 void
60 wmem_enter_file_scope(void);
61 
62 WS_DLL_LOCAL
63 void
64 wmem_leave_file_scope(void);
65 
66 /* Scope Management */
67 
68 WS_DLL_PUBLIC
69 void
70 wmem_init_scopes(void);
71 
72 WS_DLL_PUBLIC
73 void
74 wmem_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_packet_scope(void)
Fetch the current packet scope.
Definition: wmem_scopes.c:46
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_file_scope(void)
Fetch the current file scope.
Definition: wmem_scopes.c:75