20 #ifndef __PIPEWIRE_GLOBAL_H__ 21 #define __PIPEWIRE_GLOBAL_H__ 102 uint32_t permissions,
struct pw_global * pw_global_get_parent(struct pw_global *global)
Get the parent of a global.
Definition: global.c:127
int(* pw_bind_func_t)(struct pw_global *global, struct pw_client *client, uint32_t permissions, uint32_t version, uint32_t id)
The function to let a client bind to a global.
Definition: global.h:58
uint32_t pw_global_get_version(struct pw_global *global)
Get the global version.
Definition: global.c:137
uint32_t pw_global_get_type(struct pw_global *global)
Get the global type.
Definition: global.c:132
struct pw_global * pw_core_add_global(struct pw_core *core, struct pw_client *owner, struct pw_global *parent, uint32_t type, uint32_t version, pw_bind_func_t bind, void *object)
Create and add a new global to the core.
Definition: global.c:61
uint32_t pw_global_get_id(struct pw_global *global)
Get the unique id of the global.
Definition: global.c:147
int pw_global_bind(struct pw_global *global, struct pw_client *client, uint32_t permissions, uint32_t version, uint32_t id)
Bind to a global.
Definition: global.c:166
PipeWire client object class.
void pw_global_destroy(struct pw_global *global)
Destroy a global.
Definition: global.c:202
uint32_t pw_global_get_permissions(struct pw_global *global, struct pw_client *client)
Get the permissions of the global for a given client.
Definition: global.c:36
struct pw_core * pw_global_get_core(struct pw_global *global)
Get the core object of this global.
Definition: global.c:116
struct pw_client * pw_global_get_owner(struct pw_global *global)
Get the owner of the global.
Definition: global.c:122
A global object visible to remote clients.
void * pw_global_get_object(struct pw_global *global)
Get the object associated with the global.
Definition: global.c:142