25#ifndef SPA_DEVICE_UTILS_H
26#define SPA_DEVICE_UTILS_H
46 uint32_t type,
const void *result)
60 uint32_t
id, uint32_t *
index,
89#define spa_device_emit(hooks,method,version,...) \
90 spa_hook_list_call_simple(hooks, struct spa_device_events, \
91 method, version, ##__VA_ARGS__)
93#define spa_device_emit_info(hooks,i) spa_device_emit(hooks,info, 0, i)
94#define spa_device_emit_result(hooks,s,r,t,res) spa_device_emit(hooks,result, 0, s, r, t, res)
95#define spa_device_emit_event(hooks,e) spa_device_emit(hooks,event, 0, e)
96#define spa_device_emit_object_info(hooks,id,i) spa_device_emit(hooks,object_info, 0, id, i)
#define spa_device_enum_params(d,...)
Enumerate the parameters of a device.
Definition: spa/include/spa/monitor/device.h:288
static int spa_device_enum_params_sync(struct spa_device *device, uint32_t id, uint32_t *index, const struct spa_pod *filter, struct spa_pod **param, struct spa_pod_builder *builder)
Definition: spa/include/spa/monitor/utils.h:64
#define SPA_VERSION_DEVICE_EVENTS
version of the structure
Definition: spa/include/spa/monitor/device.h:142
#define spa_device_add_listener(d,...)
Set events to receive asynchronous notifications from the device.
Definition: spa/include/spa/monitor/device.h:282
static void spa_result_func_device_params(void *data, int seq, int res, uint32_t type, const void *result)
Definition: spa/include/spa/monitor/utils.h:50
static void spa_hook_remove(struct spa_hook *hook)
Remove a hook.
Definition: hook.h:392
static int spa_pod_builder_raw_padded(struct spa_pod_builder *builder, const void *data, uint32_t size)
Definition: builder.h:180
#define SPA_POD_SIZE(pod)
Definition: pod/pod.h:50
static struct spa_pod * spa_pod_builder_deref(struct spa_pod_builder *builder, uint32_t offset)
Definition: builder.h:113
spa_device_events:
Definition: spa/include/spa/monitor/device.h:139
uint32_t version
Definition: spa/include/spa/monitor/device.h:143
Definition: spa/include/spa/monitor/device.h:60
A hook, contains the structure with functions and the data passed to the functions.
Definition: hook.h:351
uint32_t offset
Definition: builder.h:53
struct spa_pod_builder_state state
Definition: builder.h:77
Definition: spa/include/spa/monitor/utils.h:45
struct spa_result_device_params data
Definition: spa/include/spa/monitor/utils.h:47
struct spa_pod_builder * builder
Definition: spa/include/spa/monitor/utils.h:46
Definition: spa/include/spa/monitor/device.h:116
uint32_t index
Definition: spa/include/spa/monitor/device.h:118
uint32_t next
Definition: spa/include/spa/monitor/device.h:119
struct spa_pod * param
Definition: spa/include/spa/monitor/device.h:120