PipeWire
0.1.4
|
Go to the source code of this file.
Data Structures | |
struct | pw_client_events |
The events that a client can emit. More... | |
Macros | |
#define | __USE_GNU |
#define | PW_TYPE__Client PW_TYPE_OBJECT_BASE "Client" |
#define | PW_TYPE_CLIENT_BASE PW_TYPE__Client ":" |
#define | PW_VERSION_CLIENT_EVENTS 0 |
Functions | |
struct pw_client * | pw_client_new (struct pw_core *core, struct pw_global *parent, struct ucred *ucred, struct pw_properties *properties, size_t user_data_size) |
Create a new client. More... | |
void | pw_client_destroy (struct pw_client *client) |
Destroy a previously created client. More... | |
void * | pw_client_get_user_data (struct pw_client *client) |
Get the client user data. More... | |
const struct pw_client_info * | pw_client_get_info (struct pw_client *client) |
Get the client information. More... | |
void | pw_client_update_properties (struct pw_client *client, const struct spa_dict *dict) |
Update the client properties. More... | |
const struct pw_properties * | pw_client_get_properties (struct pw_client *client) |
Get the client properties. More... | |
struct pw_core * | pw_client_get_core (struct pw_client *client) |
Get the core used to create this client. More... | |
struct pw_resource * | pw_client_get_core_resource (struct pw_client *client) |
Get the client core resource. More... | |
struct pw_resource * | pw_client_get_resource (struct pw_client *client, uint32_t id) |
Get a resource with the given id. More... | |
struct pw_global * | pw_client_get_global (struct pw_client *client) |
Get the global associated with this client. More... | |
const struct ucred * | pw_client_get_ucred (struct pw_client *client) |
Get the ucred from a client or NULL when not specified/valid. More... | |
void | pw_client_add_listener (struct pw_client *client, struct spa_hook *listener, const struct pw_client_events *events, void *data) |
listen to events from this client More... | |
void | pw_client_set_busy (struct pw_client *client, bool busy) |
Mark the client busy. More... | |
#define __USE_GNU |
#define PW_TYPE__Client PW_TYPE_OBJECT_BASE "Client" |
#define PW_TYPE_CLIENT_BASE PW_TYPE__Client ":" |
#define PW_VERSION_CLIENT_EVENTS 0 |
void pw_client_add_listener | ( | struct pw_client * | client, |
struct spa_hook * | listener, | ||
const struct pw_client_events * | events, | ||
void * | data | ||
) |
listen to events from this client
References pw_client::listener_list.
void pw_client_destroy | ( | struct pw_client * | client | ) |
Destroy a previously created client.
Get the core used to create this client.
References pw_client::core.
struct pw_resource* pw_client_get_core_resource | ( | struct pw_client * | client | ) |
Get the client core resource.
References pw_client::core_resource.
Get the global associated with this client.
References pw_client::global.
const struct pw_client_info* pw_client_get_info | ( | struct pw_client * | client | ) |
Get the client information.
References pw_client::info.
const struct pw_properties* pw_client_get_properties | ( | struct pw_client * | client | ) |
Get the client properties.
References pw_client::properties.
struct pw_resource* pw_client_get_resource | ( | struct pw_client * | client, |
uint32_t | id | ||
) |
Get a resource with the given id.
References pw_client::objects.
const struct ucred* pw_client_get_ucred | ( | struct pw_client * | client | ) |
Get the ucred from a client or NULL when not specified/valid.
References pw_client::ucred, and pw_client::ucred_valid.
void* pw_client_get_user_data | ( | struct pw_client * | client | ) |
Get the client user data.
References pw_client::user_data.
struct pw_client* pw_client_new | ( | struct pw_core * | core, |
struct pw_global * | parent, | ||
struct ucred * | ucred, | ||
struct pw_properties * | properties, | ||
size_t | user_data_size | ||
) |
Create a new client.
This is mainly used by protocols.
core | the core object |
parent | the client parent |
ucred | optional ucred |
properties | client properties |
user_data_size | extra user data size |
void pw_client_set_busy | ( | struct pw_client * | client, |
bool | busy | ||
) |
Mark the client busy.
This can be used when an asynchronous operation is started and no further processing is allowed to happen for the client
References pw_client::busy, and pw_client::listener_list.
void pw_client_update_properties | ( | struct pw_client * | client, |
const struct spa_dict * | dict | ||
) |
Update the client properties.