Wireshark 4.7.0
The Wireshark network protocol analyzer
Loading...
Searching...
No Matches
wmem_scopes.h
Go to the documentation of this file.
1
11#pragma once
12#include <wsutil/wmem/wmem.h>
13
14#ifdef __cplusplus
15extern "C" {
16#endif /* __cplusplus */
17
25WS_DLL_PUBLIC
27wmem_epan_scope(void);
28
36WS_DLL_PUBLIC
38wmem_file_scope(void);
39
46WS_DLL_LOCAL
47void
49
55WS_DLL_LOCAL
56void
58
59/* Scope Management */
60
66WS_DLL_PUBLIC
67void
69
76WS_DLL_PUBLIC
77void
79
80#ifdef __cplusplus
81}
82#endif /* __cplusplus */
83
84/*
85 * Editor modelines - https://www.wireshark.org/tools/modelines.html
86 *
87 * Local variables:
88 * c-basic-offset: 4
89 * tab-width: 8
90 * indent-tabs-mode: nil
91 * End:
92 *
93 * vi: set shiftwidth=4 tabstop=8 expandtab:
94 * :indentSize=4:tabSize=8:noTabs=true:
95 */
Internal memory allocator interface used by the wmem subsystem.
Definition wmem_allocator.h:34
WS_DLL_PUBLIC void wmem_cleanup_scopes(void)
Cleans up all memory scopes.
Definition wmem_scopes.c:101
WS_DLL_LOCAL void wmem_leave_file_scope(void)
Leave the file scope.
Definition wmem_scopes.c:62
WS_DLL_LOCAL void wmem_enter_file_scope(void)
Enters a file scope for memory management.
Definition wmem_scopes.c:53
WS_DLL_PUBLIC void wmem_init_scopes(void)
Initializes the memory scopes.
Definition wmem_scopes.c:86
WS_DLL_PUBLIC wmem_allocator_t * wmem_file_scope(void)
Fetch the current file scope.
Definition wmem_scopes.c:45
WS_DLL_PUBLIC wmem_allocator_t * wmem_epan_scope(void)
Fetch the current epan scope.
Definition wmem_scopes.c:76