25 #ifndef SPA_DEVICE_UTILS_H 26 #define SPA_DEVICE_UTILS_H 41 uint32_t type,
const void *result)
54 uint32_t
id, uint32_t *
index,
71 if (
data.data.param == NULL) {
75 *index =
data.data.next;
82 #define spa_device_emit(hooks,method,version,...) \ 83 spa_hook_list_call_simple(hooks, struct spa_device_events, \ 84 method, version, ##__VA_ARGS__) 86 #define spa_device_emit_info(hooks,i) spa_device_emit(hooks,info, 0, i) 87 #define spa_device_emit_result(hooks,s,r,t,res) spa_device_emit(hooks,result, 0, s, r, t, res) 88 #define spa_device_emit_event(hooks,e) spa_device_emit(hooks,event, 0, e) 89 #define spa_device_emit_object_info(hooks,id,i) spa_device_emit(hooks,object_info, 0, id, i) void * data
Definition: builder.h:64
void spa_hook_remove(struct spa_hook *hook)
Remove a hook.
Definition: hook.h:117
struct spa_pod * param
Definition: x86_64-redhat-linux-gnu/doc/spa/monitor/device.h:103
int spa_pod_builder_raw_padded(struct spa_pod_builder *builder, const void *data, uint32_t size)
Definition: builder.h:167
A hook, contains the structure with functions and the data passed to the functions.
Definition: hook.h:76
static uint32_t int int res
Definition: core.h:328
static uint32_t int seq
Definition: core.h:328
struct spa_pod_builder * builder
Definition: x86_64-redhat-linux-gnu/doc/spa/monitor/utils.h:36
struct spa_result_device_params data
Definition: x86_64-redhat-linux-gnu/doc/spa/monitor/utils.h:37
#define SPA_VERSION_DEVICE_EVENTS
version of the structure
Definition: x86_64-redhat-linux-gnu/doc/spa/monitor/device.h:119
uint32_t index
Definition: x86_64-redhat-linux-gnu/doc/spa/monitor/device.h:101
void spa_result_func_device_params(void *data, int seq, int res, uint32_t type, const void *result)
Definition: x86_64-redhat-linux-gnu/doc/spa/monitor/utils.h:40
Definition: x86_64-redhat-linux-gnu/doc/spa/monitor/utils.h:35
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: x86_64-redhat-linux-gnu/doc/spa/monitor/utils.h:53
#define spa_device_enum_params(d,...)
Definition: x86_64-redhat-linux-gnu/doc/spa/monitor/device.h:255
struct spa_pod_builder_state state
Definition: builder.h:67
spa_device_events:
Definition: x86_64-redhat-linux-gnu/doc/spa/monitor/device.h:117
Definition: x86_64-redhat-linux-gnu/doc/spa/monitor/device.h:99
Definition: x86_64-redhat-linux-gnu/doc/spa/monitor/device.h:53
#define SPA_POD_SIZE(pod)
Definition: pod/pod.h:42
uint32_t offset
Definition: builder.h:47
#define spa_device_add_listener(d,...)
Definition: x86_64-redhat-linux-gnu/doc/spa/monitor/device.h:253
#define SPA_PTROFF(ptr_, offset_, type_)
Return the address (buffer + offset) as pointer of type.
Definition: defs.h:158
static uint32_t int int const char int r
Definition: core.h:341
uint32_t next
Definition: x86_64-redhat-linux-gnu/doc/spa/monitor/device.h:102