Wireshark 4.5.0
The Wireshark network protocol analyzer
Loading...
Searching...
No Matches
wmem_user_cb.h
Go to the documentation of this file.
1
12#ifndef __WMEM_USER_CB_H__
13#define __WMEM_USER_CB_H__
14
15#include <glib.h>
16
17#ifdef __cplusplus
18extern "C" {
19#endif /* __cplusplus */
20
35
45
58WS_DLL_PUBLIC
59unsigned
61 void *user_data);
62
68WS_DLL_PUBLIC
69void
70wmem_unregister_callback(wmem_allocator_t *allocator, unsigned id);
71
75#ifdef __cplusplus
76}
77#endif /* __cplusplus */
78
79#endif /* __WMEM_USER_CB_H__ */
80
81/*
82 * Editor modelines - https://www.wireshark.org/tools/modelines.html
83 *
84 * Local variables:
85 * c-basic-offset: 4
86 * tab-width: 8
87 * indent-tabs-mode: nil
88 * End:
89 *
90 * vi: set shiftwidth=4 tabstop=8 expandtab:
91 * :indentSize=4:tabSize=8:noTabs=true:
92 */
bool(* wmem_user_cb_t)(wmem_allocator_t *, wmem_cb_event_t, void *)
Definition wmem_user_cb.h:44
enum _wmem_cb_event_t wmem_cb_event_t
WS_DLL_PUBLIC void wmem_unregister_callback(wmem_allocator_t *allocator, unsigned id)
Definition wmem_user_cb.c:73
WS_DLL_PUBLIC unsigned wmem_register_callback(wmem_allocator_t *allocator, wmem_user_cb_t callback, void *user_data)
Definition wmem_user_cb.c:54
_wmem_cb_event_t
Definition wmem_user_cb.h:31
@ WMEM_CB_FREE_EVENT
Definition wmem_user_cb.h:32
@ WMEM_CB_DESTROY_EVENT
Definition wmem_user_cb.h:33
Definition wmem_allocator.h:27