mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2026-06-13 03:01:58 -04:00
add per type API defines
This commit is contained in:
parent
b03f2f7afa
commit
31802d4994
85 changed files with 1137 additions and 509 deletions
|
|
@ -18,12 +18,20 @@ extern "C" {
|
|||
|
||||
#include <spa/node/node.h>
|
||||
|
||||
#ifndef SPA_API_NODE_UTILS
|
||||
#ifdef SPA_API_IMPL
|
||||
#define SPA_API_NODE_UTILS SPA_API_IMPL
|
||||
#else
|
||||
#define SPA_API_NODE_UTILS static inline
|
||||
#endif
|
||||
#endif
|
||||
|
||||
struct spa_result_node_params_data {
|
||||
struct spa_pod_builder *builder;
|
||||
struct spa_result_node_params data;
|
||||
};
|
||||
|
||||
SPA_API_IMPL void spa_result_func_node_params(void *data,
|
||||
SPA_API_NODE_UTILS void spa_result_func_node_params(void *data,
|
||||
int seq SPA_UNUSED, int res SPA_UNUSED, uint32_t type SPA_UNUSED, const void *result)
|
||||
{
|
||||
struct spa_result_node_params_data *d =
|
||||
|
|
@ -37,7 +45,7 @@ SPA_API_IMPL void spa_result_func_node_params(void *data,
|
|||
d->data.param = spa_pod_builder_deref(d->builder, offset);
|
||||
}
|
||||
|
||||
SPA_API_IMPL int spa_node_enum_params_sync(struct spa_node *node,
|
||||
SPA_API_NODE_UTILS 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,
|
||||
|
|
@ -70,7 +78,7 @@ SPA_API_IMPL int spa_node_enum_params_sync(struct spa_node *node,
|
|||
return res;
|
||||
}
|
||||
|
||||
SPA_API_IMPL int spa_node_port_enum_params_sync(struct spa_node *node,
|
||||
SPA_API_NODE_UTILS 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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue