Wireshark 4.5.0
The Wireshark network protocol analyzer
Loading...
Searching...
No Matches
Macros | Typedefs | Functions
wmem_stack.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_stack_count(X)   wmem_list_count(X)
 
#define wmem_stack_push(STACK, DATA)   wmem_list_prepend((STACK), (DATA))
 
#define wmem_stack_new(ALLOCATOR)   wmem_list_new(ALLOCATOR)
 
#define wmem_destroy_stack(STACK)   wmem_destroy_list(STACK)
 

Typedefs

typedef wmem_list_t wmem_stack_t
 

Functions

WS_DLL_PUBLIC void * wmem_stack_peek (const wmem_stack_t *stack)
 
WS_DLL_PUBLIC void * wmem_stack_pop (wmem_stack_t *stack)
 

Detailed Description

Definitions for the Wireshark Memory Manager Stack 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