25 #ifndef SPA_NODE_UTILS_H 26 #define SPA_NODE_UTILS_H 47 int seq,
int res, uint32_t type,
const void *result)
60 uint32_t
id, uint32_t *
index,
79 if (
data.data.param == NULL) {
83 *index =
data.data.next;
92 uint32_t
id, uint32_t *index,
112 if (
data.data.param == NULL) {
116 *index =
data.data.next;
123 #define spa_node_emit(hooks,method,version,...) \ 124 spa_hook_list_call_simple(hooks, struct spa_node_events, \ 125 method, version, ##__VA_ARGS__) 127 #define spa_node_emit_info(hooks,...) spa_node_emit(hooks,info, 0, __VA_ARGS__) 128 #define spa_node_emit_port_info(hooks,...) spa_node_emit(hooks,port_info, 0, __VA_ARGS__) 129 #define spa_node_emit_result(hooks,...) spa_node_emit(hooks,result, 0, __VA_ARGS__) 130 #define spa_node_emit_event(hooks,...) spa_node_emit(hooks,event, 0, __VA_ARGS__) 133 #define spa_node_call(callbacks,method,version,...) \ 135 int _res = -ENOTSUP; \ 136 spa_callbacks_call_res(callbacks, struct spa_node_callbacks, \ 137 _res, method, version, ##__VA_ARGS__); \ 141 #define spa_node_call_ready(hook,...) spa_node_call(hook, ready, 0, __VA_ARGS__) 142 #define spa_node_call_reuse_buffer(hook,...) spa_node_call(hook, reuse_buffer, 0, __VA_ARGS__) 143 #define spa_node_call_xrun(hook,...) spa_node_call(hook, xrun, 0, __VA_ARGS__) void * data
Definition: builder.h:64
Definition: x86_64-redhat-linux-gnu/doc/spa/node/utils.h:41
Definition: x86_64-redhat-linux-gnu/doc/spa/node/node.h:52
void spa_hook_remove(struct spa_hook *hook)
Remove a hook.
Definition: hook.h:117
spa_direction
Definition: defs.h:77
the result of enum_params or port_enum_params.
Definition: x86_64-redhat-linux-gnu/doc/spa/node/node.h:151
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
#define spa_node_enum_params(n,...)
Definition: x86_64-redhat-linux-gnu/doc/spa/node/node.h:668
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/node/utils.h:42
uint32_t next
next index of iteration
Definition: x86_64-redhat-linux-gnu/doc/spa/node/node.h:154
#define spa_node_port_enum_params(n,...)
Definition: x86_64-redhat-linux-gnu/doc/spa/node/node.h:674
events from the spa_node.
Definition: x86_64-redhat-linux-gnu/doc/spa/node/node.h:170
struct spa_pod_builder_state state
Definition: builder.h:67
#define SPA_VERSION_NODE_EVENTS
Definition: x86_64-redhat-linux-gnu/doc/spa/node/node.h:171
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: x86_64-redhat-linux-gnu/doc/spa/node/utils.h:59
struct spa_result_node_params data
Definition: x86_64-redhat-linux-gnu/doc/spa/node/utils.h:43
#define SPA_POD_SIZE(pod)
Definition: pod/pod.h:42
struct spa_pod * param
the result param
Definition: x86_64-redhat-linux-gnu/doc/spa/node/node.h:155
uint32_t offset
Definition: builder.h:47
uint32_t index
index of parameter
Definition: x86_64-redhat-linux-gnu/doc/spa/node/node.h:153
#define spa_node_add_listener(n,...)
Definition: x86_64-redhat-linux-gnu/doc/spa/node/node.h:665
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: x86_64-redhat-linux-gnu/doc/spa/node/utils.h:90
void spa_result_func_node_params(void *data, int seq, int res, uint32_t type, const void *result)
Definition: x86_64-redhat-linux-gnu/doc/spa/node/utils.h:46
#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