| Wireshark 4.7.3 The Wireshark network protocol analyzer

Loading...
Searching...
No Matches
Functions
wmem_user_cb_int.h File Reference
`#include <glib.h>`
`#include "wmem_user_cb.h"`

Go to the source code of this file.

## Functions
WS_DLL_LOCAL void | wmem_call_callbacks (wmem_allocator_t *allocator, wmem_cb_event_t event)
| Invoke registered callbacks for a given allocator and event.

## Detailed Description

Definitions for the Wireshark Memory Manager User Callback Internals 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

## Function Documentation

## ◆ wmem_call_callbacks()

WS_DLL_LOCAL void wmem_call_callbacks | ( | wmem_allocator_t * | allocator,
|  | wmem_cb_event_t | event )

Invoke registered callbacks for a given allocator and event.

Triggers all callbacks associated with the specified allocator for the given event. This mechanism allows external components to respond to lifecycle changes or memory events within the wmem system.

Parameters

  allocator | Pointer to the wmem_allocator_t whose callbacks should be invoked.
  event | The wmem_cb_event_t indicating the type of event to dispatch.

Note
  This function is internal and typically used by the wmem subsystem to propagate allocator events. It is not intended for general use.