Wireshark 4.5.0
The Wireshark network protocol analyzer
Loading...
Searching...
No Matches
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
23extern "C" {
24#endif /* __cplusplus */
25
35/* Wmem queue is implemented as a dumb wrapper over Wmem list and stack */
37
38#define wmem_queue_count(X) wmem_list_count(X)
39
40#define wmem_queue_peek(QUEUE) wmem_stack_peek(QUEUE)
41
42#define wmem_queue_pop(QUEUE) wmem_stack_pop(QUEUE)
43
44#define wmem_queue_push(QUEUE, DATA) wmem_list_append((QUEUE), (DATA))
45
46#define wmem_queue_new(ALLOCATOR) wmem_list_new(ALLOCATOR)
47
48#define wmem_destroy_queue(QUEUE) wmem_destroy_list(QUEUE)
49
53#ifdef __cplusplus
54}
55#endif /* __cplusplus */
56
57#endif /* __WMEM_QUEUE_H__ */
58
59/*
60 * Editor modelines - https://www.wireshark.org/tools/modelines.html
61 *
62 * Local variables:
63 * c-basic-offset: 4
64 * tab-width: 8
65 * indent-tabs-mode: nil
66 * End:
67 *
68 * vi: set shiftwidth=4 tabstop=8 expandtab:
69 * :indentSize=4:tabSize=8:noTabs=true:
70 */
Definition wmem_list.c:23