Go to the documentation of this file.
25 #ifndef PIPEWIRE_MAIN_LOOP_H
26 #define PIPEWIRE_MAIN_LOOP_H
49 #define PW_VERSION_MAIN_LOOP_EVENTS 0
struct pw_loop * pw_loop_new(const struct spa_dict *props)
Create a new loop.
Definition: loop.c:54
void pw_main_loop_add_listener(struct pw_main_loop *loop, struct spa_hook *listener, const struct pw_main_loop_events *events, void *data)
Add an event listener.
Definition: main-loop.c:110
void(* destroy)(void *data)
Emitted when the main loop is destroyed.
Definition: main-loop.h:53
#define pw_loop_leave(l)
Definition: src/pipewire/loop.h:69
user data to add to an object
Definition: filter.c:75
Definition: src/pipewire/loop.h:47
#define SPA_EXPORT
Definition: defs.h:208
void spa_hook_list_append(struct spa_hook_list *list, struct spa_hook *hook, const void *funcs, void *data)
Append a hook.
Definition: hook.h:316
struct pw_main_loop * pw_main_loop_new(const struct spa_dict *props)
Create a new main loop.
Definition: main-loop.c:86
#define NAME
Definition: main-loop.c:29
struct pw_loop * pw_main_loop_get_loop(struct pw_main_loop *loop)
Get the loop implementation.
Definition: main-loop.c:119
#define pw_loop_add_event(l,...)
Definition: src/pipewire/loop.h:75
int pw_main_loop_run(struct pw_main_loop *loop)
Start a main loop.
Definition: main-loop.c:145
A hook, contains the structure with functions and the data passed to the functions.
Definition: hook.h:295
uint32_t version
Definition: main-loop.h:50
Definition: utils/dict.h:48
#define pw_loop_signal_event(l,...)
Definition: src/pipewire/loop.h:76
int pw_main_loop_quit(struct pw_main_loop *loop)
Stop a main loop.
Definition: main-loop.c:131
#define spa_strerror(err)
Definition: result.h:51
#define pw_log_debug(...)
Definition: src/pipewire/log.h:89
#define pw_loop_enter(l)
Definition: src/pipewire/loop.h:67
#define pw_loop_iterate(l,...)
Definition: src/pipewire/loop.h:68
#define pw_log_warn(...)
Definition: src/pipewire/log.h:87
void pw_loop_destroy(struct pw_loop *loop)
Destroy a loop.
Definition: loop.c:156
void spa_hook_list_init(struct spa_hook_list *list)
Initialize a hook list to the empty list.
Definition: hook.h:305
struct spa_loop * loop
wrapped loop
Definition: src/pipewire/loop.h:49
Events of the main loop.
Definition: main-loop.h:48
void spa_hook_list_clean(struct spa_hook_list *list)
Remove all hooks from the list.
Definition: hook.h:344
void pw_main_loop_destroy(struct pw_main_loop *loop)
Destroy a main loop.
Definition: main-loop.c:96