mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2026-02-10 04:27:48 -05:00
make static inline -> SPA_API_IMPL
So that we can export the symbols as well.
This commit is contained in:
parent
84bd4b7ea9
commit
90b0e45037
91 changed files with 563 additions and 552 deletions
|
|
@ -634,7 +634,7 @@ struct spa_node_methods {
|
|||
};
|
||||
|
||||
|
||||
static inline int spa_node_add_listener(struct spa_node *object,
|
||||
SPA_API_IMPL int spa_node_add_listener(struct spa_node *object,
|
||||
struct spa_hook *listener,
|
||||
const struct spa_node_events *events,
|
||||
void *data)
|
||||
|
|
@ -642,58 +642,58 @@ static inline int spa_node_add_listener(struct spa_node *object,
|
|||
return spa_api_method_r(int, -ENOTSUP, spa_node, &object->iface, add_listener, 0,
|
||||
listener, events, data);
|
||||
}
|
||||
static inline int spa_node_set_callbacks(struct spa_node *object,
|
||||
SPA_API_IMPL int spa_node_set_callbacks(struct spa_node *object,
|
||||
const struct spa_node_callbacks *callbacks,
|
||||
void *data)
|
||||
{
|
||||
return spa_api_method_r(int, -ENOTSUP, spa_node, &object->iface, set_callbacks, 0,
|
||||
callbacks, data);
|
||||
}
|
||||
static inline int spa_node_sync(struct spa_node *object, int seq)
|
||||
SPA_API_IMPL int spa_node_sync(struct spa_node *object, int seq)
|
||||
{
|
||||
return spa_api_method_r(int, -ENOTSUP, spa_node, &object->iface, sync, 0,
|
||||
seq);
|
||||
}
|
||||
static inline int spa_node_enum_params(struct spa_node *object, int seq,
|
||||
SPA_API_IMPL int spa_node_enum_params(struct spa_node *object, int seq,
|
||||
uint32_t id, uint32_t start, uint32_t max,
|
||||
const struct spa_pod *filter)
|
||||
{
|
||||
return spa_api_method_r(int, -ENOTSUP, spa_node, &object->iface, enum_params, 0,
|
||||
seq, id, start, max, filter);
|
||||
}
|
||||
static inline int spa_node_set_param(struct spa_node *object,
|
||||
SPA_API_IMPL int spa_node_set_param(struct spa_node *object,
|
||||
uint32_t id, uint32_t flags,
|
||||
const struct spa_pod *param)
|
||||
{
|
||||
return spa_api_method_r(int, -ENOTSUP, spa_node, &object->iface, set_param, 0,
|
||||
id, flags, param);
|
||||
}
|
||||
static inline int spa_node_set_io(struct spa_node *object,
|
||||
SPA_API_IMPL int spa_node_set_io(struct spa_node *object,
|
||||
uint32_t id, void *data, size_t size)
|
||||
{
|
||||
return spa_api_method_r(int, -ENOTSUP, spa_node, &object->iface, set_io, 0,
|
||||
id, data, size);
|
||||
}
|
||||
static inline int spa_node_send_command(struct spa_node *object,
|
||||
SPA_API_IMPL int spa_node_send_command(struct spa_node *object,
|
||||
const struct spa_command *command)
|
||||
{
|
||||
return spa_api_method_r(int, -ENOTSUP, spa_node, &object->iface, send_command, 0,
|
||||
command);
|
||||
}
|
||||
static inline int spa_node_add_port(struct spa_node *object,
|
||||
SPA_API_IMPL int spa_node_add_port(struct spa_node *object,
|
||||
enum spa_direction direction, uint32_t port_id,
|
||||
const struct spa_dict *props)
|
||||
{
|
||||
return spa_api_method_r(int, -ENOTSUP, spa_node, &object->iface, add_port, 0,
|
||||
direction, port_id, props);
|
||||
}
|
||||
static inline int spa_node_remove_port(struct spa_node *object,
|
||||
SPA_API_IMPL int spa_node_remove_port(struct spa_node *object,
|
||||
enum spa_direction direction, uint32_t port_id)
|
||||
{
|
||||
return spa_api_method_r(int, -ENOTSUP, spa_node, &object->iface, remove_port, 0,
|
||||
direction, port_id);
|
||||
}
|
||||
static inline int spa_node_port_enum_params(struct spa_node *object, int seq,
|
||||
SPA_API_IMPL int spa_node_port_enum_params(struct spa_node *object, int seq,
|
||||
enum spa_direction direction, uint32_t port_id,
|
||||
uint32_t id, uint32_t start, uint32_t max,
|
||||
const struct spa_pod *filter)
|
||||
|
|
@ -701,7 +701,7 @@ static inline int spa_node_port_enum_params(struct spa_node *object, int seq,
|
|||
return spa_api_method_r(int, -ENOTSUP, spa_node, &object->iface, port_enum_params, 0,
|
||||
seq, direction, port_id, id, start, max, filter);
|
||||
}
|
||||
static inline int spa_node_port_set_param(struct spa_node *object,
|
||||
SPA_API_IMPL int spa_node_port_set_param(struct spa_node *object,
|
||||
enum spa_direction direction,
|
||||
uint32_t port_id,
|
||||
uint32_t id, uint32_t flags,
|
||||
|
|
@ -710,7 +710,7 @@ static inline int spa_node_port_set_param(struct spa_node *object,
|
|||
return spa_api_method_r(int, -ENOTSUP, spa_node, &object->iface, port_set_param, 0,
|
||||
direction, port_id, id, flags, param);
|
||||
}
|
||||
static inline int spa_node_port_use_buffers(struct spa_node *object,
|
||||
SPA_API_IMPL int spa_node_port_use_buffers(struct spa_node *object,
|
||||
enum spa_direction direction,
|
||||
uint32_t port_id,
|
||||
uint32_t flags,
|
||||
|
|
@ -720,7 +720,7 @@ static inline int spa_node_port_use_buffers(struct spa_node *object,
|
|||
return spa_api_method_r(int, -ENOTSUP, spa_node, &object->iface, port_use_buffers, 0,
|
||||
direction, port_id, flags, buffers, n_buffers);
|
||||
}
|
||||
static inline int spa_node_port_set_io(struct spa_node *object,
|
||||
SPA_API_IMPL int spa_node_port_set_io(struct spa_node *object,
|
||||
enum spa_direction direction,
|
||||
uint32_t port_id,
|
||||
uint32_t id, void *data, size_t size)
|
||||
|
|
@ -729,21 +729,21 @@ static inline int spa_node_port_set_io(struct spa_node *object,
|
|||
direction, port_id, id, data, size);
|
||||
}
|
||||
|
||||
static inline int spa_node_port_reuse_buffer(struct spa_node *object, uint32_t port_id, uint32_t buffer_id)
|
||||
SPA_API_IMPL int spa_node_port_reuse_buffer(struct spa_node *object, uint32_t port_id, uint32_t buffer_id)
|
||||
{
|
||||
return spa_api_method_r(int, -ENOTSUP, spa_node, &object->iface, port_reuse_buffer, 0,
|
||||
port_id, buffer_id);
|
||||
}
|
||||
static inline int spa_node_port_reuse_buffer_fast(struct spa_node *object, uint32_t port_id, uint32_t buffer_id)
|
||||
SPA_API_IMPL int spa_node_port_reuse_buffer_fast(struct spa_node *object, uint32_t port_id, uint32_t buffer_id)
|
||||
{
|
||||
return spa_api_method_fast_r(int, -ENOTSUP, spa_node, &object->iface, port_reuse_buffer, 0,
|
||||
port_id, buffer_id);
|
||||
}
|
||||
static inline int spa_node_process(struct spa_node *object)
|
||||
SPA_API_IMPL int spa_node_process(struct spa_node *object)
|
||||
{
|
||||
return spa_api_method_r(int, -ENOTSUP, spa_node, &object->iface, process, 0);
|
||||
}
|
||||
static inline int spa_node_process_fast(struct spa_node *object)
|
||||
SPA_API_IMPL int spa_node_process_fast(struct spa_node *object)
|
||||
{
|
||||
return spa_api_method_fast_r(int, -ENOTSUP, spa_node, &object->iface, process, 0);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -23,7 +23,7 @@ struct spa_result_node_params_data {
|
|||
struct spa_result_node_params data;
|
||||
};
|
||||
|
||||
static inline void spa_result_func_node_params(void *data,
|
||||
SPA_API_IMPL 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 +37,7 @@ static inline void spa_result_func_node_params(void *data,
|
|||
d->data.param = spa_pod_builder_deref(d->builder, offset);
|
||||
}
|
||||
|
||||
static inline int spa_node_enum_params_sync(struct spa_node *node,
|
||||
SPA_API_IMPL 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 +70,7 @@ static inline int spa_node_enum_params_sync(struct spa_node *node,
|
|||
return res;
|
||||
}
|
||||
|
||||
static inline int spa_node_port_enum_params_sync(struct spa_node *node,
|
||||
SPA_API_IMPL 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