5 #ifndef SPA_NODE_UTILS_H 6 #define SPA_NODE_UTILS_H 27 int seq,
int res, uint32_t type,
const void *result)
41 uint32_t
id, uint32_t *
index,
75 uint32_t
id, uint32_t *index,
93 id, *index, 1, filter);
108 #define spa_node_emit(hooks,method,version,...) \ 109 spa_hook_list_call_simple(hooks, struct spa_node_events, \ 110 method, version, ##__VA_ARGS__) 112 #define spa_node_emit_info(hooks,...) spa_node_emit(hooks,info, 0, __VA_ARGS__) 113 #define spa_node_emit_port_info(hooks,...) spa_node_emit(hooks,port_info, 0, __VA_ARGS__) 114 #define spa_node_emit_result(hooks,...) spa_node_emit(hooks,result, 0, __VA_ARGS__) 115 #define spa_node_emit_event(hooks,...) spa_node_emit(hooks,event, 0, __VA_ARGS__) 118 #define spa_node_call(callbacks,method,version,...) \ 121 spa_callbacks_call_fast_res(callbacks, struct spa_node_callbacks, \ 122 _res, method, version, ##__VA_ARGS__); \ 126 #define spa_node_call_ready(hook,...) spa_node_call(hook, ready, 0, __VA_ARGS__) 127 #define spa_node_call_reuse_buffer(hook,...) spa_node_call(hook, reuse_buffer, 0, __VA_ARGS__) 128 #define spa_node_call_xrun(hook,...) spa_node_call(hook, xrun, 0, __VA_ARGS__) Definition: spa/include/spa/node/utils.h:26
Definition: spa/include/spa/node/node.h:41
the result of enum_params or port_enum_params.
Definition: spa/include/spa/node/node.h:167
A hook, contains the structure with functions and the data passed to the functions.
Definition: hook.h:350
#define spa_node_enum_params(n,...)
Definition: spa/include/spa/node/node.h:750
static int spa_pod_builder_raw_padded(struct spa_pod_builder *builder, const void *data, uint32_t size)
Definition: builder.h:160
#define SPA_VERSION_NODE_EVENTS
Definition: spa/include/spa/node/node.h:193
struct spa_pod_builder * builder
Definition: spa/include/spa/node/utils.h:27
uint32_t next
next index of iteration
Definition: spa/include/spa/node/node.h:170
static int spa_node_port_enum_params_sync(struct spa_node *node, enum spa_direction direction, uint32_t port_id, uint32_t id, uint32_t *index, const struct spa_pod *filter, struct spa_pod **param, struct spa_pod_builder *builder)
Definition: spa/include/spa/node/utils.h:78
#define spa_node_port_enum_params(n,...)
Definition: spa/include/spa/node/node.h:792
uint32_t version
version of this structure
Definition: spa/include/spa/node/node.h:194
events from the spa_node.
Definition: spa/include/spa/node/node.h:191
struct spa_pod_builder_state state
Definition: builder.h:57
static void spa_hook_remove(struct spa_hook *hook)
Remove a hook.
Definition: hook.h:391
static struct spa_pod * spa_pod_builder_deref(struct spa_pod_builder *builder, uint32_t offset)
Definition: builder.h:93
struct spa_result_node_params data
Definition: spa/include/spa/node/utils.h:28
static int spa_node_enum_params_sync(struct spa_node *node, uint32_t id, uint32_t *index, const struct spa_pod *filter, struct spa_pod **param, struct spa_pod_builder *builder)
Definition: spa/include/spa/node/utils.h:45
spa_direction
Definition: defs.h:92
#define SPA_POD_SIZE(pod)
Definition: pod/pod.h:30
struct spa_pod * param
the result param
Definition: spa/include/spa/node/node.h:171
uint32_t offset
Definition: builder.h:33
uint32_t index
index of parameter
Definition: spa/include/spa/node/node.h:169
static void spa_result_func_node_params(void *data, int seq, int res, uint32_t type, const void *result)
Definition: spa/include/spa/node/utils.h:31
#define spa_node_add_listener(n,...)
Definition: spa/include/spa/node/node.h:729