PipeWire 1.2.6
Loading...
Searching...
No Matches

Files

file  loop.h
 pipewire/loop.h
 

Data Structures

struct  pw_loop
 

Macros

#define pw_loop_add_source(l, ...)   spa_loop_add_source((l)->loop,__VA_ARGS__)
 
#define pw_loop_update_source(l, ...)   spa_loop_update_source((l)->loop,__VA_ARGS__)
 
#define pw_loop_remove_source(l, ...)   spa_loop_remove_source((l)->loop,__VA_ARGS__)
 
#define pw_loop_invoke(l, ...)   spa_loop_invoke((l)->loop,__VA_ARGS__)
 
#define pw_loop_get_fd(l)   spa_loop_control_get_fd((l)->control)
 
#define pw_loop_add_hook(l, ...)   spa_loop_control_add_hook((l)->control,__VA_ARGS__)
 
#define pw_loop_enter(l)   spa_loop_control_enter((l)->control)
 
#define pw_loop_leave(l)   spa_loop_control_leave((l)->control)
 
#define pw_loop_iterate(l, ...)   spa_loop_control_iterate_fast((l)->control,__VA_ARGS__)
 
#define pw_loop_add_io(l, ...)   spa_loop_utils_add_io((l)->utils,__VA_ARGS__)
 
#define pw_loop_update_io(l, ...)   spa_loop_utils_update_io((l)->utils,__VA_ARGS__)
 
#define pw_loop_add_idle(l, ...)   spa_loop_utils_add_idle((l)->utils,__VA_ARGS__)
 
#define pw_loop_enable_idle(l, ...)   spa_loop_utils_enable_idle((l)->utils,__VA_ARGS__)
 
#define pw_loop_add_event(l, ...)   spa_loop_utils_add_event((l)->utils,__VA_ARGS__)
 
#define pw_loop_signal_event(l, ...)   spa_loop_utils_signal_event((l)->utils,__VA_ARGS__)
 
#define pw_loop_add_timer(l, ...)   spa_loop_utils_add_timer((l)->utils,__VA_ARGS__)
 
#define pw_loop_update_timer(l, ...)   spa_loop_utils_update_timer((l)->utils,__VA_ARGS__)
 
#define pw_loop_add_signal(l, ...)   spa_loop_utils_add_signal((l)->utils,__VA_ARGS__)
 
#define pw_loop_destroy_source(l, ...)   spa_loop_utils_destroy_source((l)->utils,__VA_ARGS__)
 

Functions

struct pw_looppw_loop_new (const struct spa_dict *props)
 Create a new loop.
 
void pw_loop_destroy (struct pw_loop *loop)
 Destroy a loop.
 
int pw_loop_set_name (struct pw_loop *loop, const char *name)
 

Detailed Description

PipeWire loop object provides an implementation of the spa loop interfaces. It can be used to implement various event loops.

The members of Loop are read-only.

Macro Definition Documentation

◆ pw_loop_add_source

#define pw_loop_add_source ( l,
... )   spa_loop_add_source((l)->loop,__VA_ARGS__)

◆ pw_loop_update_source

#define pw_loop_update_source ( l,
... )   spa_loop_update_source((l)->loop,__VA_ARGS__)

◆ pw_loop_remove_source

#define pw_loop_remove_source ( l,
... )   spa_loop_remove_source((l)->loop,__VA_ARGS__)

◆ pw_loop_invoke

#define pw_loop_invoke ( l,
... )   spa_loop_invoke((l)->loop,__VA_ARGS__)
Examples
export-sink.c.

◆ pw_loop_get_fd

#define pw_loop_get_fd ( l)    spa_loop_control_get_fd((l)->control)

◆ pw_loop_add_hook

#define pw_loop_add_hook ( l,
... )   spa_loop_control_add_hook((l)->control,__VA_ARGS__)

◆ pw_loop_enter

#define pw_loop_enter ( l)    spa_loop_control_enter((l)->control)

◆ pw_loop_leave

#define pw_loop_leave ( l)    spa_loop_control_leave((l)->control)

◆ pw_loop_iterate

#define pw_loop_iterate ( l,
... )   spa_loop_control_iterate_fast((l)->control,__VA_ARGS__)
Examples
internal.c.

◆ pw_loop_add_io

#define pw_loop_add_io ( l,
... )   spa_loop_utils_add_io((l)->utils,__VA_ARGS__)

◆ pw_loop_update_io

#define pw_loop_update_io ( l,
... )   spa_loop_utils_update_io((l)->utils,__VA_ARGS__)

◆ pw_loop_add_idle

#define pw_loop_add_idle ( l,
... )   spa_loop_utils_add_idle((l)->utils,__VA_ARGS__)

◆ pw_loop_enable_idle

#define pw_loop_enable_idle ( l,
... )   spa_loop_utils_enable_idle((l)->utils,__VA_ARGS__)

◆ pw_loop_add_event

#define pw_loop_add_event ( l,
... )   spa_loop_utils_add_event((l)->utils,__VA_ARGS__)

◆ pw_loop_signal_event

#define pw_loop_signal_event ( l,
... )   spa_loop_utils_signal_event((l)->utils,__VA_ARGS__)

◆ pw_loop_add_timer

#define pw_loop_add_timer ( l,
... )   spa_loop_utils_add_timer((l)->utils,__VA_ARGS__)

◆ pw_loop_update_timer

#define pw_loop_update_timer ( l,
... )   spa_loop_utils_update_timer((l)->utils,__VA_ARGS__)

◆ pw_loop_add_signal

◆ pw_loop_destroy_source

#define pw_loop_destroy_source ( l,
... )   spa_loop_utils_destroy_source((l)->utils,__VA_ARGS__)

Function Documentation

◆ pw_loop_new()

struct pw_loop * pw_loop_new ( const struct spa_dict * props)

Create a new loop.

Returns
a newly allocated loop

◆ pw_loop_destroy()

void pw_loop_destroy ( struct pw_loop * loop)

Destroy a loop.

Parameters
loopa loop to destroy

◆ pw_loop_set_name()

int pw_loop_set_name ( struct pw_loop * loop,
const char * name )