25 #ifndef PIPEWIRE_CLIENT_H 26 #define PIPEWIRE_CLIENT_H 46 #define PW_TYPE_INTERFACE_Client PW_TYPE_INFO_INTERFACE_BASE "Client" 48 #define PW_VERSION_CLIENT 3 52 #define PW_ID_CLIENT 1 57 #define PW_CLIENT_CHANGE_MASK_PROPS (1 << 0) 58 #define PW_CLIENT_CHANGE_MASK_ALL ((1 << 1)-1) 72 #define PW_CLIENT_EVENT_INFO 0 73 #define PW_CLIENT_EVENT_PERMISSIONS 1 74 #define PW_CLIENT_EVENT_NUM 2 78 #define PW_VERSION_CLIENT_EVENTS 0 96 void (*permissions) (
void *object,
98 uint32_t n_permissions,
103 #define PW_CLIENT_METHOD_ADD_LISTENER 0 104 #define PW_CLIENT_METHOD_ERROR 1 105 #define PW_CLIENT_METHOD_UPDATE_PROPERTIES 2 106 #define PW_CLIENT_METHOD_GET_PERMISSIONS 3 107 #define PW_CLIENT_METHOD_UPDATE_PERMISSIONS 4 108 #define PW_CLIENT_METHOD_NUM 5 112 #define PW_VERSION_CLIENT_METHODS 0 115 int (*add_listener) (
void *object,
126 int (*error) (
void *object, uint32_t
id,
int res,
const char *message);
142 int (*get_permissions) (
void *object, uint32_t index, uint32_t num);
156 int (*update_permissions) (
void *object, uint32_t n_permissions,
160 #define pw_client_method(o,method,version,...) \ 162 int _res = -ENOTSUP; \ 163 spa_interface_call_res((struct spa_interface*)o, \ 164 struct pw_client_methods, _res, \ 165 method, version, ##__VA_ARGS__); \ 169 #define pw_client_add_listener(c,...) pw_client_method(c,add_listener,0,__VA_ARGS__) 170 #define pw_client_error(c,...) pw_client_method(c,error,0,__VA_ARGS__) 171 #define pw_client_update_properties(c,...) pw_client_method(c,update_properties,0,__VA_ARGS__) 172 #define pw_client_get_permissions(c,...) pw_client_method(c,get_permissions,0,__VA_ARGS__) 173 #define pw_client_update_permissions(c,...) pw_client_method(c,update_permissions,0,__VA_ARGS__) A hook, contains the structure with functions and the data passed to the functions.
Definition: hook.h:295
uint32_t id
id of the global
Definition: client.h:56
Definition: utils/dict.h:48
Definition: permission.h:65
struct pw_client_info * pw_client_info_update(struct pw_client_info *info, const struct pw_client_info *update)
Update and existing pw_client_info with update.
Definition: introspect.c:421
struct spa_dict * props
extra properties
Definition: client.h:60
The client information.
Definition: client.h:55
uint64_t change_mask
bitfield of changed fields since last call
Definition: client.h:59
uint32_t permissions
bitmask of above permissions
Definition: permission.h:67
uint32_t version
Definition: client.h:79
void pw_client_info_free(struct pw_client_info *info)
Free a pw_client_info.
Definition: introspect.c:445
Client events.
Definition: client.h:77
uint32_t version
Definition: client.h:113
Client methods.
Definition: client.h:111
user data to add to an object
Definition: filter.c:75