Wireshark 4.7.0
The Wireshark network protocol analyzer
Loading...
Searching...
No Matches
wmem_tree-int.h
Go to the documentation of this file.
1
13#ifndef __WMEM_TREE_INT_H__
14#define __WMEM_TREE_INT_H__
15
16#include "wmem_tree.h"
17
18#ifdef __cplusplus
19extern "C" {
20#endif /* __cplusplus */
21
32
33
53
62
70typedef struct _wmem_itree_node_t wmem_itree_node_t;
71
72
91
106typedef int (*compare_func)(const void *a, const void *b);
107
122wmem_tree_insert_node(wmem_tree_t *tree, const void *key, void *data, compare_func cmp);
123
132
143bool
145
146#ifdef __cplusplus
147}
148#endif /* __cplusplus */
149
150#endif /* __WMEM_TREE__INTERNALS_H__ */
151
152/*
153 * Editor modelines - https://www.wireshark.org/tools/modelines.html
154 *
155 * Local variables:
156 * c-basic-offset: 4
157 * tab-width: 8
158 * indent-tabs-mode: nil
159 * End:
160 *
161 * vi: set shiftwidth=4 tabstop=8 expandtab:
162 * :indentSize=4:tabSize=8:noTabs=true:
163 */
Internal memory allocator interface used by the wmem subsystem.
Definition wmem_allocator.h:34
Represents a numeric range used in wmem's internal range tree.
Definition wmem_interval_tree.h:54
Internal node structure for a wmem balanced tree.
Definition wmem_tree-int.h:41
bool is_removed
Definition wmem_tree-int.h:51
bool is_subtree
Definition wmem_tree-int.h:50
wmem_node_color_t color
Definition wmem_tree-int.h:49
struct _wmem_tree_node_t * left
Definition wmem_tree-int.h:43
struct _wmem_tree_node_t * parent
Definition wmem_tree-int.h:42
const void * key
Definition wmem_tree-int.h:46
void * data
Definition wmem_tree-int.h:47
struct _wmem_tree_node_t * right
Definition wmem_tree-int.h:44
Internal representation of a wmem balanced tree.
Definition wmem_tree-int.h:81
unsigned data_scope_cb_id
Definition wmem_tree-int.h:87
void(* post_rotation_cb)(wmem_tree_node_t *)
Definition wmem_tree-int.h:89
wmem_tree_node_t * root
Definition wmem_tree-int.h:84
wmem_allocator_t * data_allocator
Definition wmem_tree-int.h:83
unsigned metadata_scope_cb_id
Definition wmem_tree-int.h:86
wmem_allocator_t * metadata_allocator
Definition wmem_tree-int.h:82
int(* compare_func)(const void *a, const void *b)
Function pointer type for comparing two values.
Definition wmem_tree-int.h:106
enum _wmem_node_color_t wmem_node_color_t
Enumeration of node colors used in red-black trees.
struct _wmem_itree_node_t wmem_itree_node_t
Opaque type representing a node in an interval tree.
Definition wmem_tree-int.h:70
wmem_tree_node_t * wmem_tree_insert_node(wmem_tree_t *tree, const void *key, void *data, compare_func cmp)
Insert a key-value pair into a wmem red-black tree and return the new node.
Definition wmem_tree.c:608
bool wmem_itree_range_overlap(const wmem_range_t *r1, const wmem_range_t *r2)
Check whether two 32-bit ranges overlap.
Definition wmem_interval_tree.c:77
_wmem_node_color_t
Enumeration of node colors used in red-black trees.
Definition wmem_tree-int.h:28
@ WMEM_NODE_COLOR_BLACK
Definition wmem_tree-int.h:30
@ WMEM_NODE_COLOR_RED
Definition wmem_tree-int.h:29