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 
44 WS_DLL_PUBLIC
45 int
46 wmem_compare_int(gconstpointer a, gconstpointer b);
47 
48 WS_DLL_PUBLIC
49 int
50 wmem_compare_uint(gconstpointer a, gconstpointer b);
51 
55 #ifdef __cplusplus
56 }
57 #endif /* __cplusplus */
58 
59 #endif /* __WMEM_MISCUTL_H__ */
60 
61 /*
62  * Editor modelines - https://www.wireshark.org/tools/modelines.html
63  *
64  * Local variables:
65  * c-basic-offset: 4
66  * tab-width: 8
67  * indent-tabs-mode: nil
68  * End:
69  *
70  * vi: set shiftwidth=4 tabstop=8 expandtab:
71  * :indentSize=4:tabSize=8:noTabs=true:
72  */
WS_DLL_PUBLIC void * wmem_memdup(wmem_allocator_t *allocator, const void *source, const size_t size)
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