Wireshark
4.7.0
The Wireshark network protocol analyzer
Loading...
Searching...
No Matches
wsutil
wmem
wmem_queue.h
Go to the documentation of this file.
1
13
#ifndef __WMEM_QUEUE_H__
14
#define __WMEM_QUEUE_H__
15
16
#include <string.h>
17
#include <glib.h>
18
19
#include "
wmem_core.h
"
20
#include "
wmem_list.h
"
21
22
#ifdef __cplusplus
23
extern
"C"
{
24
#endif
/* __cplusplus */
25
43
typedef
wmem_list_t
wmem_queue_t
;
44
55
#define wmem_queue_count(X) wmem_list_count(X)
56
57
68
#define wmem_queue_peek(QUEUE) wmem_stack_peek(QUEUE)
69
70
81
#define wmem_queue_pop(QUEUE) wmem_stack_pop(QUEUE)
82
83
94
#define wmem_queue_push(QUEUE, DATA) wmem_list_append((QUEUE), (DATA))
95
96
107
#define wmem_queue_new(ALLOCATOR) wmem_list_new(ALLOCATOR)
108
120
#define wmem_destroy_queue(QUEUE) wmem_destroy_list(QUEUE)
121
125
#ifdef __cplusplus
126
}
127
#endif
/* __cplusplus */
128
129
#endif
/* __WMEM_QUEUE_H__ */
130
131
/*
132
* Editor modelines - https://www.wireshark.org/tools/modelines.html
133
*
134
* Local variables:
135
* c-basic-offset: 4
136
* tab-width: 8
137
* indent-tabs-mode: nil
138
* End:
139
*
140
* vi: set shiftwidth=4 tabstop=8 expandtab:
141
* :indentSize=4:tabSize=8:noTabs=true:
142
*/
wmem_queue_t
wmem_list_t wmem_queue_t
A queue abstraction implemented as a wrapper over wmem_list_t.
Definition
wmem_queue.h:43
_wmem_list_t
Definition
wmem_list.c:23
wmem_core.h
wmem_list.h
Generated by
1.9.8