Client interface.
More...
|
#define | PW_TYPE_INTERFACE_Client PW_TYPE_INFO_INTERFACE_BASE "Client" |
|
#define | PW_CLIENT_PERM_MASK PW_PERM_RWXM |
|
#define | PW_VERSION_CLIENT 3 |
|
#define | PW_ID_CLIENT 1 |
|
#define | PW_CLIENT_CHANGE_MASK_PROPS (1 << 0) |
|
#define | PW_CLIENT_CHANGE_MASK_ALL ((1 << 1)-1) |
|
#define | PW_CLIENT_EVENT_INFO 0 |
|
#define | PW_CLIENT_EVENT_PERMISSIONS 1 |
|
#define | PW_CLIENT_EVENT_NUM 2 |
|
#define | PW_VERSION_CLIENT_EVENTS 0 |
|
#define | PW_CLIENT_METHOD_ADD_LISTENER 0 |
|
#define | PW_CLIENT_METHOD_ERROR 1 |
|
#define | PW_CLIENT_METHOD_UPDATE_PROPERTIES 2 |
|
#define | PW_CLIENT_METHOD_GET_PERMISSIONS 3 |
|
#define | PW_CLIENT_METHOD_UPDATE_PERMISSIONS 4 |
|
#define | PW_CLIENT_METHOD_NUM 5 |
|
#define | PW_VERSION_CLIENT_METHODS 0 |
|
#define | pw_client_method(o, method, version, ...) |
|
#define | pw_client_add_listener(c, ...) pw_client_method(c,add_listener,0,__VA_ARGS__) |
|
#define | pw_client_error(c, ...) pw_client_method(c,error,0,__VA_ARGS__) |
| Send an error to a client. More...
|
|
#define | pw_client_update_properties(c, ...) pw_client_method(c,update_properties,0,__VA_ARGS__) |
| Update client properties. More...
|
|
#define | pw_client_get_permissions(c, ...) pw_client_method(c,get_permissions,0,__VA_ARGS__) |
| Get client permissions. More...
|
|
#define | pw_client_update_permissions(c, ...) pw_client_method(c,update_permissions,0,__VA_ARGS__) |
| Manage the permissions of the global objects for this client. More...
|
|
Client interface.
◆ PW_TYPE_INTERFACE_Client
◆ PW_CLIENT_PERM_MASK
◆ PW_VERSION_CLIENT
#define PW_VERSION_CLIENT 3 |
◆ PW_ID_CLIENT
◆ PW_CLIENT_CHANGE_MASK_PROPS
#define PW_CLIENT_CHANGE_MASK_PROPS (1 << 0) |
◆ PW_CLIENT_CHANGE_MASK_ALL
#define PW_CLIENT_CHANGE_MASK_ALL ((1 << 1)-1) |
◆ PW_CLIENT_EVENT_INFO
#define PW_CLIENT_EVENT_INFO 0 |
◆ PW_CLIENT_EVENT_PERMISSIONS
#define PW_CLIENT_EVENT_PERMISSIONS 1 |
◆ PW_CLIENT_EVENT_NUM
#define PW_CLIENT_EVENT_NUM 2 |
◆ PW_VERSION_CLIENT_EVENTS
#define PW_VERSION_CLIENT_EVENTS 0 |
◆ PW_CLIENT_METHOD_ADD_LISTENER
#define PW_CLIENT_METHOD_ADD_LISTENER 0 |
◆ PW_CLIENT_METHOD_ERROR
#define PW_CLIENT_METHOD_ERROR 1 |
◆ PW_CLIENT_METHOD_UPDATE_PROPERTIES
#define PW_CLIENT_METHOD_UPDATE_PROPERTIES 2 |
◆ PW_CLIENT_METHOD_GET_PERMISSIONS
#define PW_CLIENT_METHOD_GET_PERMISSIONS 3 |
◆ PW_CLIENT_METHOD_UPDATE_PERMISSIONS
#define PW_CLIENT_METHOD_UPDATE_PERMISSIONS 4 |
◆ PW_CLIENT_METHOD_NUM
#define PW_CLIENT_METHOD_NUM 5 |
◆ PW_VERSION_CLIENT_METHODS
#define PW_VERSION_CLIENT_METHODS 0 |
◆ pw_client_method
#define pw_client_method |
( |
|
o, |
|
|
|
method, |
|
|
|
version, |
|
|
|
... |
|
) |
| |
◆ pw_client_add_listener
#define pw_client_add_listener |
( |
|
c, |
|
|
|
... |
|
) |
| pw_client_method(c,add_listener,0,__VA_ARGS__) |
◆ pw_client_error
Send an error to a client.
- Parameters
-
id | the global id to report the error on |
res | an errno style error code |
message | an error string |
This requires W and X permissions on the client.
- See also
- pw_client_methods.error
◆ pw_client_update_properties
#define pw_client_update_properties |
( |
|
c, |
|
|
|
... |
|
) |
| pw_client_method(c,update_properties,0,__VA_ARGS__) |
◆ pw_client_get_permissions
#define pw_client_get_permissions |
( |
|
c, |
|
|
|
... |
|
) |
| pw_client_method(c,get_permissions,0,__VA_ARGS__) |
Get client permissions.
A permissions event will be emitted with the permissions.
- Parameters
-
index | the first index to query, 0 for first |
num | the maximum number of items to get |
This requires W and X permissions on the client.
- See also
- pw_client_methods.get_permissions
◆ pw_client_update_permissions
#define pw_client_update_permissions |
( |
|
c, |
|
|
|
... |
|
) |
| pw_client_method(c,update_permissions,0,__VA_ARGS__) |
Manage the permissions of the global objects for this client.
Update the permissions of the global objects using the provided array with permissions
Globals can use the default permissions or can have specific permissions assigned to them.
- Parameters
-
n_permissions | number of permissions |
permissions | array of permissions |
This requires W and X permissions on the client.
- See also
- pw_client_methods.update_permissions
- Examples
- export-sink.c.
◆ pw_client_info_update()
◆ pw_client_info_merge()
◆ pw_client_info_free()