| Wireshark 4.7.0 The Wireshark network protocol analyzer

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

Go to the source code of this file.

## Typedefs
typedef struct _wmem_list_t | wmem_list_t
| Opaque type representing a scoped, doubly-linked list in the wmem system.
typedef struct _wmem_list_frame_t | wmem_list_frame_t
| Opaque type representing a frame within a `wmem_list_t`.

## Functions
WS_DLL_PUBLIC unsigned | wmem_list_count (const wmem_list_t *list)
| Count the number of elements in a wmem list.
WS_DLL_PUBLIC wmem_list_frame_t * | wmem_list_head (const wmem_list_t *list)
| Retrieve the head (first frame) of a wmem list.
WS_DLL_PUBLIC wmem_list_frame_t * | wmem_list_tail (const wmem_list_t *list)
| Retrieve the tail (last frame) of a wmem list.
WS_DLL_PUBLIC wmem_list_frame_t * | wmem_list_frame_next (const wmem_list_frame_t *frame)
| Retrieve the next frame in a wmem list.
WS_DLL_PUBLIC wmem_list_frame_t * | wmem_list_frame_prev (const wmem_list_frame_t *frame)
| Retrieve the previous frame in a wmem list.
WS_DLL_PUBLIC void * | wmem_list_frame_data (const wmem_list_frame_t *frame)
| Retrieve the data stored in a list frame.
WS_DLL_PUBLIC void | wmem_list_remove (wmem_list_t *list, void *data)
| Remove the first occurrence of a data element from a wmem list.
WS_DLL_PUBLIC void | wmem_list_remove_frame (wmem_list_t *list, wmem_list_frame_t *frame)
| Remove a specific frame from a wmem list.
WS_DLL_PUBLIC wmem_list_frame_t * | wmem_list_find (const wmem_list_t *list, const void *data)
| Find the first frame containing the specified data in a wmem list.
WS_DLL_PUBLIC wmem_list_frame_t * | wmem_list_find_custom (const wmem_list_t *list, const void *data, GCompareFunc func)
| Find a frame in a wmem list using a custom comparison function.
WS_DLL_PUBLIC void | wmem_list_prepend (wmem_list_t *list, void *data)
| Prepend a data element to the beginning of a wmem list.
WS_DLL_PUBLIC void | wmem_list_append (wmem_list_t *list, void *data)
| Appends a data element to the end of a wmem list.
WS_DLL_PUBLIC void | wmem_list_insert_sorted (wmem_list_t *list, void *data, GCompareFunc func)
| Insert a data element into a wmem list in sorted order.
WS_DLL_PUBLIC void | wmem_list_append_sorted (wmem_list_t *list, void *data, GCompareFunc func)
| Insert a data element into a wmem list in sorted order, starting from the tail.
WS_DLL_PUBLIC wmem_list_t * | wmem_list_new (wmem_allocator_t *allocator)
| Create a new wmem list using the specified memory allocator.
WS_DLL_PUBLIC void | wmem_list_foreach (const wmem_list_t *list, GFunc foreach_func, void *user_data)
| Apply a function to each data element in a wmem list.
WS_DLL_PUBLIC void | wmem_destroy_list (wmem_list_t *list)
| Destroy a wmem list and release its internal resources.

## Detailed Description

Definitions for the Wireshark Memory Manager Doubly-Linked List Copyright 2012, 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