PipeWire
0.2.0
|
PipeWire client object class. More...
Public Member Functions | |
struct pw_client * | pw_client_new (struct pw_core *core, struct ucred *ucred, struct pw_properties *properties, size_t user_data_size) |
Make a new client object. More... | |
void | pw_client_destroy (struct pw_client *client) |
Destroy a client object. More... | |
int | pw_client_update_properties (struct pw_client *client, const struct spa_dict *dict) |
Update client properties. 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.
void pw_client_destroy | ( | struct pw_client * | client | ) |
Destroy a client object.
client | the client to destroy |
References pw_global::pw_global_destroy(), pw_log::pw_log_debug(), pw_map::pw_map_for_each(), and pw_resource_destroy().
struct pw_client * pw_client_new | ( | struct pw_core * | core, |
struct ucred * | ucred, | ||
struct pw_properties * | properties, | ||
size_t | user_data_size | ||
) |
Make a new client object.
core | a pw_core object to register the client with |
ucred | a ucred structure or NULL when unknown |
properties | optional client properties, ownership is taken |
References pw_array::pw_array_init(), PW_CLIENT_PROP_UCRED_GID, PW_CLIENT_PROP_UCRED_PID, PW_CLIENT_PROP_UCRED_UID, pw_log::pw_log_debug(), pw_properties::pw_properties_new(), pw_properties::pw_properties_setf(), and impl::this.
int pw_client_update_properties | ( | struct pw_client * | client, |
const struct spa_dict * | dict | ||
) |
Update client properties.
client | the client |
dict | a spa_dict with properties |
Add all properties in dict to the client properties. Existing properties are overwritten. Items can be removed by setting the value to NULL.
References PW_CLIENT_CHANGE_MASK_PROPS, pw_client_resource_info, pw_properties::pw_properties_new_dict(), and pw_properties::pw_properties_set().