PipeWire 0.3.77
Loading...
Searching...
No Matches
spa_handle Struct Reference

#include <spa/support/plugin.h>

Data Fields

uint32_t version
 
int(* get_interface )(struct spa_handle *handle, const char *type, void **interface)
 Get the interface provided by handle with type. More...
 
int(* clear )(struct spa_handle *handle)
 Clean up the memory of handle. More...
 

Detailed Description

Field Documentation

◆ version

uint32_t spa_handle::version

◆ get_interface

int(* spa_handle::get_interface) (struct spa_handle *handle, const char *type, void **interface)

Get the interface provided by handle with type.

interface is always a struct spa_interface but depending on type, the struct might contain other information.

Parameters
handlea spa_handle
typethe interface type
interfaceresult to hold the interface.
Returns
0 on success -ENOTSUP when there are no interfaces -EINVAL when handle or info is NULL

◆ clear

int(* spa_handle::clear) (struct spa_handle *handle)

Clean up the memory of handle.

After this, handle should not be used anymore.

Parameters
handlea pointer to memory
Returns
0 on success

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