PipeWire: spa_hook Struct Reference

PipeWire 0.3.37

Data Fields
spa_hook Struct Reference
SPA Hooks

A hook, contains the structure with functions and the data passed to the functions. More...

`#include <hook.h>`

Collaboration diagram for spa_hook:
[legend]

## Data Fields
struct spa_list | link
struct spa_callbacks | cb
void(* | removed )(struct spa_hook *hook)
| callback and data for the hook list, private to the hook_list implementor More...
void * | priv

## Detailed Description

A hook, contains the structure with functions and the data passed to the functions.

A hook should be treated as opaque by the caller.

## Field Documentation

## ◆ cb

struct spa_callbacks spa_hook::cb

Referenced by spa_hook_list_append(), and spa_hook_list_prepend().

## ◆ link

struct spa_list spa_hook::link

Referenced by spa_hook_list_append(), spa_hook_list_prepend(), and spa_hook_remove().

## ◆ priv

void* spa_hook::priv

## ◆ removed

void(* spa_hook::removed) (struct spa_hook *hook)

callback and data for the hook list, private to the hook_list implementor

Referenced by pw_filter_add_listener(), pw_stream_add_listener(), and spa_hook_remove().

The documentation for this struct was generated from the following file:

- hook.h