mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-06 13:30:01 -05:00
global: pass bind function to _new
Make the bind function a callback instead of an event. We can then get a return value and use that to clean up the pending proxy and generate an error.
This commit is contained in:
parent
f2ff6f393b
commit
245a0d5634
13 changed files with 67 additions and 67 deletions
|
|
@ -131,7 +131,6 @@ struct pw_client {
|
|||
#define pw_global_emit_registering(g) pw_global_emit(g, registering, 0)
|
||||
#define pw_global_emit_destroy(g) pw_global_emit(g, destroy, 0)
|
||||
#define pw_global_emit_free(g) pw_global_emit(g, free, 0)
|
||||
#define pw_global_emit_bind(g,...) pw_global_emit(g, bind, 0, __VA_ARGS__)
|
||||
|
||||
struct pw_global {
|
||||
struct pw_core *core; /**< the core */
|
||||
|
|
@ -149,6 +148,7 @@ struct pw_global {
|
|||
uint32_t type; /**< type of interface */
|
||||
uint32_t version; /**< version of interface */
|
||||
|
||||
pw_global_bind_func_t func; /**< bind function */
|
||||
void *object; /**< object associated with the interface */
|
||||
|
||||
struct spa_list resource_list; /**< The list of resources of this global */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue