PipeWire
0.3.28
|
PipeWire client object class. More...
Public Member Functions | |
SPA_EXPORT struct pw_impl_client * | pw_context_create_client (struct pw_impl_core *core, struct pw_protocol *protocol, struct pw_properties *properties, size_t user_data_size) |
Make a new client object. More... | |
SPA_EXPORT void | pw_impl_client_destroy (struct pw_impl_client *client) |
Destroy a client object. More... | |
PipeWire client object class.
The client object represents a client connection with the PipeWire server.
Each client has its own list of resources it is bound to along with a mapping between the client types and server types.
SPA_EXPORT struct pw_impl_client * pw_context_create_client | ( | struct pw_impl_core * | core, |
struct pw_protocol * | protocol, | ||
struct pw_properties * | properties, | ||
size_t | user_data_size | ||
) |
Make a new client object.
core | a pw_context object to register the client with |
ucred | a ucred structure or NULL when unknown |
properties | optional client properties, ownership is taken |
References pw_permission::id, NAME, pw_permission::permissions, pw_array::pw_array_add(), pw_array::pw_array_init(), PW_ID_ANY, pw_log::pw_log_debug, pw_mempool_add_listener(), pw_mempool_new(), pw_properties::pw_properties_new(), res, and impl::this.
SPA_EXPORT void pw_impl_client_destroy | ( | struct pw_impl_client * | client | ) |
Destroy a client object.
client | the client to destroy |
References NAME, pw_log::pw_log_debug, and pw_map::pw_map_for_each().