Go to the documentation of this file.
25 #ifndef PIPEWIRE_LOOP_H
26 #define PIPEWIRE_LOOP_H
60 #define pw_loop_add_source(l,...) spa_loop_add_source((l)->loop,__VA_ARGS__)
61 #define pw_loop_update_source(l,...) spa_loop_update_source((l)->loop,__VA_ARGS__)
62 #define pw_loop_remove_source(l,...) spa_loop_remove_source((l)->loop,__VA_ARGS__)
63 #define pw_loop_invoke(l,...) spa_loop_invoke((l)->loop,__VA_ARGS__)
65 #define pw_loop_get_fd(l) spa_loop_control_get_fd((l)->control)
66 #define pw_loop_add_hook(l,...) spa_loop_control_add_hook((l)->control,__VA_ARGS__)
67 #define pw_loop_enter(l) spa_loop_control_enter((l)->control)
68 #define pw_loop_iterate(l,...) spa_loop_control_iterate((l)->control,__VA_ARGS__)
69 #define pw_loop_leave(l) spa_loop_control_leave((l)->control)
71 #define pw_loop_add_io(l,...) spa_loop_utils_add_io((l)->utils,__VA_ARGS__)
72 #define pw_loop_update_io(l,...) spa_loop_utils_update_io((l)->utils,__VA_ARGS__)
73 #define pw_loop_add_idle(l,...) spa_loop_utils_add_idle((l)->utils,__VA_ARGS__)
74 #define pw_loop_enable_idle(l,...) spa_loop_utils_enable_idle((l)->utils,__VA_ARGS__)
75 #define pw_loop_add_event(l,...) spa_loop_utils_add_event((l)->utils,__VA_ARGS__)
76 #define pw_loop_signal_event(l,...) spa_loop_utils_signal_event((l)->utils,__VA_ARGS__)
77 #define pw_loop_add_timer(l,...) spa_loop_utils_add_timer((l)->utils,__VA_ARGS__)
78 #define pw_loop_update_timer(l,...) spa_loop_utils_update_timer((l)->utils,__VA_ARGS__)
79 #define pw_loop_add_signal(l,...) spa_loop_utils_add_signal((l)->utils,__VA_ARGS__)
80 #define pw_loop_destroy_source(l,...) spa_loop_utils_destroy_source((l)->utils,__VA_ARGS__)
struct pw_loop * pw_loop_new(const struct spa_dict *props)
Create a new loop.
Definition: loop.c:54
struct pw_loop * pw_context_get_main_loop(struct pw_context *context)
get the context main loop
Definition: context.c:567
#define NAME
Definition: loop.c:38
struct spa_thread_utils utils
Definition: thread.c:67
#define SPA_SUPPORT_INIT(type, data)
Definition: plugin.h:107
user data to add to an object
Definition: filter.c:75
uint8_t data[MAX_BUFFER]
Definition: module-profiler.c:87
bool spa_streq(const char *s1, const char *s2)
Definition: string.h:50
uint32_t pw_get_support(struct spa_support *support, uint32_t max_support)
Definition: pipewire.c:233
Definition: src/pipewire/loop.h:47
#define SPA_EXPORT
Definition: defs.h:208
struct spa_hook listener
Definition: access-flatpak.c:46
struct spa_loop_utils * utils
loop utils
Definition: src/pipewire/loop.h:51
Definition: build-12683127/doc/spa/support/loop.h:58
Definition: build-12683127/doc/spa/support/loop.h:44
#define SPA_CONTAINER_OF(p, t, m)
Definition: defs.h:170
#define PW_KEY_LIBRARY_NAME_LOOP
name of the loop library to use
Definition: src/pipewire/keys.h:61
#define SPA_NAME_SUPPORT_LOOP
A Loop/LoopControl/LoopUtils interface.
Definition: names.h:44
struct spa_loop_control * control
loop control
Definition: src/pipewire/loop.h:50
A hook, contains the structure with functions and the data passed to the functions.
Definition: hook.h:295
#define NAME
Definition: logind.c:53
struct spa_system * system
system utils
Definition: src/pipewire/loop.h:48
struct pw_loop * loop
Definition: module-protocol-simple.c:86
Definition: build-12683127/doc/spa/support/loop.h:48
#define PW_KEY_LIBRARY_NAME_SYSTEM
name of the system library to use
Definition: src/pipewire/keys.h:60
Definition: utils/dict.h:48
#define pw_loop_add_source(l,...)
Definition: src/pipewire/loop.h:60
const char * spa_dict_lookup(const struct spa_dict *dict, const char *key)
Definition: utils/dict.h:99
#define SPA_TYPE_INTERFACE_LoopControl
Definition: build-12683127/doc/spa/support/loop.h:46
#define spa_strerror(err)
Definition: result.h:51
#define spa_handle_get_interface(h,...)
Definition: plugin.h:73
struct spa_device * monitor
Definition: alsa-monitor.c:125
int pw_unload_spa_handle(struct spa_handle *handle)
Definition: pipewire.c:321
struct pw_context * context
Definition: settings.c:43
struct sm_media_session * session
Definition: access-flatpak.c:45
#define pw_loop_remove_source(l,...)
Definition: src/pipewire/loop.h:62
#define SPA_TYPE_INTERFACE_System
a collection of core system functions
Definition: system.h:48
struct pw_control this
Definition: control.c:34
void pw_loop_destroy(struct pw_loop *loop)
Destroy a loop.
Definition: loop.c:156
Definition: build-12683127/doc/spa/support/loop.h:52
void spa_hook_remove(struct spa_hook *hook)
Remove a hook.
Definition: hook.h:336
#define SPA_TYPE_INTERFACE_Loop
Definition: build-12683127/doc/spa/support/loop.h:41
struct spa_handle * pw_load_spa_handle(const char *lib, const char *factory_name, const struct spa_dict *info, uint32_t n_support, const struct spa_support support[])
Definition: pipewire.c:242
#define SPA_NAME_SUPPORT_SYSTEM
A System interface.
Definition: names.h:46
struct spa_loop * loop
wrapped loop
Definition: src/pipewire/loop.h:49
int sm_logind_start(struct sm_media_session *session)
Definition: logind.c:103
#define SPA_TYPE_INTERFACE_LoopUtils
Definition: build-12683127/doc/spa/support/loop.h:50
Extra supporting infrastructure passed to the init() function of a factory.
Definition: plugin.h:89
struct pw_stream * source
Definition: module-echo-cancel.c:150
Definition: pipewire.c:80
#define pw_log_error(...)
Definition: src/pipewire/log.h:86