PipeWire
0.1.5.1
|
Go to the source code of this file.
Typedefs | |
typedef 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. More... | |
Functions | |
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) |
Add a new global object to the core registry. More... | |
uint32_t | pw_global_get_permissions (struct pw_global *global, struct pw_client *client) |
Get the permissions of the global for a given client. More... | |
struct pw_core * | pw_global_get_core (struct pw_global *global) |
Get the core object of this global. More... | |
struct pw_client * | pw_global_get_owner (struct pw_global *global) |
Get the owner of the global. More... | |
struct pw_global * | pw_global_get_parent (struct pw_global *global) |
Get the parent of a global. More... | |
uint32_t | pw_global_get_type (struct pw_global *global) |
Get the global type. More... | |
uint32_t | pw_global_get_version (struct pw_global *global) |
Get the global version. More... | |
void * | pw_global_get_object (struct pw_global *global) |
Get the object associated with the global. More... | |
uint32_t | pw_global_get_id (struct pw_global *global) |
Get the unique id of the global. More... | |
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. More... | |
void | pw_global_destroy (struct pw_global *global) |
Destroy a global. More... | |
typedef 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.
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 | ||
) |
Add a new global object to the core registry.
Referenced by pw_client_register(), pw_core::pw_core_new(), pw_factory_register(), and pw_link_register().
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.
void pw_global_destroy | ( | struct pw_global * | global | ) |
Destroy a global.
Referenced by pw_client::pw_client_destroy(), pw_core::pw_core_destroy(), pw_factory_destroy(), pw_link_destroy(), and pw_module::pw_module_destroy().
uint32_t pw_global_get_id | ( | struct pw_global * | global | ) |
Get the unique id of the global.
void* pw_global_get_object | ( | struct pw_global * | global | ) |
Get the object associated with the global.
This depends on the type of the global
Get the owner of the global.
This can be NULL when the core is owner
Get the permissions of the global for a given client.
References PW_PERM_RWX.
Referenced by pw_core::pw_core_add_global(), and pw_global::pw_global_destroy().
uint32_t pw_global_get_type | ( | struct pw_global * | global | ) |
Get the global type.
uint32_t pw_global_get_version | ( | struct pw_global * | global | ) |
Get the global version.