| Wireshark 4.7.0 The Wireshark network protocol analyzer

Loading...
Searching...
No Matches
Macros | Typedefs
wmem_queue.h File Reference
`#include <string.h>`
`#include <glib.h>`
`#include "wmem_core.h"`
`#include "wmem_list.h"`

Go to the source code of this file.

## Macros
#define | wmem_queue_count(X) wmem_list_count(X)
| Get the number of elements in a wmem queue.
#define | wmem_queue_peek(QUEUE) wmem_stack_peek(QUEUE)
| Peek at the front element of a wmem queue without removing it.
#define | wmem_queue_pop(QUEUE) wmem_stack_pop(QUEUE)
| Remove and return the front element of a wmem queue.
#define | wmem_queue_push(QUEUE, DATA) wmem_list_append((QUEUE), (DATA))
| Add a data element to the end of a wmem queue.
#define | wmem_queue_new(ALLOCATOR) wmem_list_new(ALLOCATOR)
| Create a new wmem queue using the specified memory allocator.
#define | wmem_destroy_queue(QUEUE) wmem_destroy_list(QUEUE)
| Destroy a wmem queue and release its internal resources.

## Typedefs
typedef wmem_list_t | wmem_queue_t
| A queue abstraction implemented as a wrapper over wmem_list_t.

## Detailed Description

Definitions for the Wireshark Memory Manager Queue Copyright 2013, Evan Huus eapac.nosp@m.he@g.nosp@m.mail..nosp@m.com

Wireshark - Network traffic analyzer By Gerald Combs geral.nosp@m.d@wi.nosp@m.resha.nosp@m.rk.o.nosp@m.rg Copyright 1998 Gerald Combs

SPDX-License-Identifier: GPL-2.0-or-later