Wireshark 2.9.0-477-g68ec514b The Wireshark network protocol analyzer

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes
- Files

- File List
- File Members

wmem_user_cb.h
1 /* wmem_user_cb.h
2 * Definitions for the Wireshark Memory Manager User Callbacks
3 * Copyright 2012, Evan Huus <eapache@gmail.com>
4 *
5 * Wireshark - Network traffic analyzer
6 * By Gerald Combs <gerald@wireshark.org>
7 * Copyright 1998 Gerald Combs
8 *
9 * SPDX-License-Identifier: GPL-2.0-or-later
10 */
11
12 #ifndef __WMEM_USER_CB_H__
13 #define __WMEM_USER_CB_H__
14
15 #include <glib.h>
16
17 #ifdef __cplusplus
18 extern "C" {
19 #endif /* __cplusplus */
20
31 typedef enum _wmem_cb_event_t {
32 WMEM_CB_FREE_EVENT,
33 WMEM_CB_DESTROY_EVENT
34 } wmem_cb_event_t;
35
44 typedef gboolean (*wmem_user_cb_t) (wmem_allocator_t*, wmem_cb_event_t, void*);
45
58 WS_DLL_PUBLIC
59 guint
60 wmem_register_callback(wmem_allocator_t *allocator, wmem_user_cb_t callback,
61 void *user_data);
62
68 WS_DLL_PUBLIC
69 void
70 wmem_unregister_callback(wmem_allocator_t *allocator, guint id);
71
75 #ifdef __cplusplus
76 }
77 #endif /* __cplusplus */
78
79 #endif /* __WMEM_USER_CB_H__ */
80
81 /*
82 * Editor modelines - http://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 */
wmem_register_callback
WS_DLL_PUBLIC guint 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
enum _wmem_cb_event_t wmem_cb_event_t
wmem_unregister_callback
WS_DLL_PUBLIC void wmem_unregister_callback(wmem_allocator_t *allocator, guint id)
Definition: wmem_user_cb.c:73
_wmem_allocator_t
Definition: wmem_allocator.h:26
WMEM_CB_FREE_EVENT
Definition: wmem_user_cb.h:32
_wmem_cb_event_t
_wmem_cb_event_t
Definition: wmem_user_cb.h:31
WMEM_CB_DESTROY_EVENT
Definition: wmem_user_cb.h:33
wmem_user_cb_t
gboolean(* wmem_user_cb_t)(wmem_allocator_t *, wmem_cb_event_t, void *)
Definition: wmem_user_cb.h:44