Wireshark  4.3.0
The Wireshark network protocol analyzer
wmem_miscutl.h
Go to the documentation of this file.
1 
12 #ifndef __WMEM_MISCUTL_H__
13 #define __WMEM_MISCUTL_H__
14 
15 #include <string.h>
16 #include <glib.h>
17 
18 #ifdef __cplusplus
19 extern "C" {
20 #endif /* __cplusplus */
21 
38 WS_DLL_PUBLIC
39 void *
40 wmem_memdup(wmem_allocator_t *allocator, const void *source, const size_t size)
41 G_GNUC_MALLOC;
42 
45 WS_DLL_PUBLIC
46 int
47 wmem_compare_int(gconstpointer a, gconstpointer b);
48 
49 WS_DLL_PUBLIC
50 int
51 wmem_compare_uint(gconstpointer a, gconstpointer b);
52 
56 #ifdef __cplusplus
57 }
58 #endif /* __cplusplus */
59 
60 #endif /* __WMEM_MISCUTL_H__ */
61 
62 /*
63  * Editor modelines - https://www.wireshark.org/tools/modelines.html
64  *
65  * Local variables:
66  * c-basic-offset: 4
67  * tab-width: 8
68  * indent-tabs-mode: nil
69  * End:
70  *
71  * vi: set shiftwidth=4 tabstop=8 expandtab:
72  * :indentSize=4:tabSize=8:noTabs=true:
73  */
WS_DLL_PUBLIC void * wmem_memdup(wmem_allocator_t *allocator, const void *source, const size_t size) G_GNUC_MALLOC
Definition: wmem_miscutl.c:19
WS_DLL_PUBLIC int wmem_compare_int(gconstpointer a, gconstpointer b)
Definition: wmem_miscutl.c:33
Definition: wmem_allocator.h:27