PipeWire
0.1.4
|
A global object visible to all clients. More...
Public Member Functions | |
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. More... | |
void | pw_global_destroy (struct pw_global *global) |
Destroy a global. More... | |
Data Fields | |
struct pw_core * | core |
the core More... | |
struct pw_client * | owner |
the owner of this object, NULL when the PipeWire server is the owner More... | |
struct spa_list | link |
link in core list of globals More... | |
uint32_t | id |
server id of the object More... | |
struct pw_global * | parent |
parent global More... | |
uint32_t | type |
type of interface More... | |
uint32_t | version |
version of interface More... | |
pw_bind_func_t | bind |
function to bind to the interface More... | |
void * | object |
object associated with the interface More... | |
A global object visible to all clients.
A global object is visible to all clients and represents a resource that can be used or inspected.
See Server API
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.
global | the global to bind to |
client | the client that binds |
version | the version |
id | the id |
Let client bind to global with the given version and id. After binding, the client and the global object will be able to exchange messages.
References bind, pw_client::core_resource, pw_resource::id, pw_core_resource_error, and version.
void pw_global_destroy | ( | struct pw_global * | global | ) |
Destroy a global.
global | a global to destroy |
References pw_resource::client, core, pw_core::globals, id, link, pw_resource::link, pw_core::listener_list, pw_resource::permissions, pw_global_get_permissions(), PW_PERM_IS_R, pw_registry_resource_global_remove, and pw_core::registry_resource_list.
Referenced by pw_node_factory_destroy().
pw_bind_func_t pw_global::bind |
function to bind to the interface
Referenced by pw_global_bind().
struct pw_core* pw_global::core |
the core
Referenced by pw_global_destroy(), and pw_global_get_core().
uint32_t pw_global::id |
server id of the object
Referenced by pw_client::pw_client_new(), pw_core::pw_core_add_global(), pw_core::pw_core_find_port(), pw_global_destroy(), pw_global_get_id(), and pw_link_new().
struct spa_list pw_global::link |
link in core list of globals
Referenced by pw_core::pw_core_add_global(), pw_core_for_each_global(), and pw_global_destroy().
void* pw_global::object |
object associated with the interface
Referenced by pw_global_get_object().
struct pw_client* pw_global::owner |
the owner of this object, NULL when the PipeWire server is the owner
Referenced by pw_global_get_owner().
struct pw_global* pw_global::parent |
parent global
Referenced by pw_global_get_parent().
uint32_t pw_global::type |
type of interface
Referenced by pw_core::pw_core_add_global(), and pw_global_get_type().
uint32_t pw_global::version |
version of interface
Referenced by pw_core::pw_core_add_global(), pw_global_bind(), and pw_global_get_version().