20 #ifndef __PIPEWIRE_GLOBAL_H__ 21 #define __PIPEWIRE_GLOBAL_H__ 60 #define PW_VERSION_GLOBAL_EVENTS 1 79 uint32_t old_permissions,
80 uint32_t new_permissions);
98 struct spa_hook *listener,
133 uint32_t permissions,
A collection of key/value pairs.
Definition: properties.h:38
uint32_t version
Definition: global.h:61
void pw_global_destroy(struct pw_global *global)
Destroy a global.
int pw_global_bind(struct pw_global *global, struct pw_client *client, uint32_t permissions, uint32_t version, uint32_t id)
Let a client bind to a global.
struct pw_global * pw_global_get_parent(struct pw_global *global)
Get the parent of a global.
Definition: global.c:154
uint32_t pw_global_get_version(struct pw_global *global)
Get the global version.
Definition: global.c:166
uint32_t pw_global_get_type(struct pw_global *global)
Get the global type.
Definition: global.c:160
void(* free)(void *data)
The global is freed.
Definition: global.h:67
uint32_t pw_global_get_id(struct pw_global *global)
Get the unique id of the global.
Definition: global.c:184
void pw_global_add_listener(struct pw_global *global, struct spa_hook *listener, const struct pw_global_events *events, void *data)
Add an event listener on the global.
Definition: global.c:190
void(* destroy)(void *data)
The global is destroyed.
Definition: global.h:64
void(* permissions_changed)(void *data, struct pw_client *client, uint32_t old_permissions, uint32_t new_permissions)
Definition: global.h:77
PipeWire client object class.
int pw_global_register(struct pw_global *global, struct pw_client *owner, struct pw_global *parent)
Register a global object to the core registry.
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:37
struct pw_global * pw_global_new(struct pw_core *core, uint32_t type, uint32_t version, struct pw_properties *properties, void *object)
Create a new global object.
struct pw_core * pw_global_get_core(struct pw_global *global)
Get the core object of this global.
Definition: global.c:142
struct pw_client * pw_global_get_owner(struct pw_global *global)
Get the owner of the global.
Definition: global.c:148
Global events, use pw_global_add_listener.
Definition: global.h:59
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:178
void(* bind)(void *data, struct pw_client *client, uint32_t permissions, uint32_t version, uint32_t id)
Definition: global.h:70
const struct pw_properties * pw_global_get_properties(struct pw_global *global)
Get the global properties.
Definition: global.c:172