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

#include <pipewire/extensions/session-manager/interfaces.h>

Data Fields

uint32_t version
 version of this structure More...
 
int(* add_listener )(void *object, struct spa_hook *listener, const struct pw_endpoint_link_events *events, void *data)
 
int(* subscribe_params )(void *object, uint32_t *ids, uint32_t n_ids)
 Subscribe to parameter changes. More...
 
int(* enum_params )(void *object, int seq, uint32_t id, uint32_t start, uint32_t num, const struct spa_pod *filter)
 Enumerate link parameters. More...
 
int(* set_param )(void *object, uint32_t id, uint32_t flags, const struct spa_pod *param)
 Set a parameter on the link. More...
 
int(* request_state )(void *object, enum pw_endpoint_link_state state)
 Request a state on the link. More...
 

Field Documentation

◆ version

uint32_t pw_endpoint_link_methods::version

version of this structure

◆ add_listener

int(* pw_endpoint_link_methods::add_listener) (void *object, struct spa_hook *listener, const struct pw_endpoint_link_events *events, void *data)

◆ subscribe_params

int(* pw_endpoint_link_methods::subscribe_params) (void *object, uint32_t *ids, uint32_t n_ids)

Subscribe to parameter changes.

Automatically emit param events for the given ids when they are changed.

Parameters
idsan array of param ids
n_idsthe number of ids in ids

This requires X permissions.

◆ enum_params

int(* pw_endpoint_link_methods::enum_params) (void *object, int seq, uint32_t id, uint32_t start, uint32_t num, const struct spa_pod *filter)

Enumerate link parameters.

Start enumeration of link parameters. For each param, a param event will be emitted.

Parameters
seqa sequence number returned in the reply
idthe parameter id to enumerate
startthe start index or 0 for the first param
numthe maximum number of params to retrieve
filtera param filter or NULL

This requires X permissions.

◆ set_param

int(* pw_endpoint_link_methods::set_param) (void *object, uint32_t id, uint32_t flags, const struct spa_pod *param)

Set a parameter on the link.

Parameters
idthe parameter id to set
flagsextra parameter flags
paramthe parameter to set

This requires X and W permissions.

◆ request_state

int(* pw_endpoint_link_methods::request_state) (void *object, enum pw_endpoint_link_state state)

Request a state on the link.

This requires X and W permissions.


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