make static inline -> SPA_API_IMPL

So that we can export the symbols as well.
This commit is contained in:
Wim Taymans 2024-11-20 11:48:08 +01:00
parent 84bd4b7ea9
commit 90b0e45037
91 changed files with 563 additions and 552 deletions

View file

@ -220,7 +220,7 @@ struct spa_device_methods {
const struct spa_pod *param);
};
static inline int spa_device_add_listener(struct spa_device *object,
SPA_API_IMPL int spa_device_add_listener(struct spa_device *object,
struct spa_hook *listener,
const struct spa_device_events *events,
void *data)
@ -229,19 +229,19 @@ static inline int spa_device_add_listener(struct spa_device *object,
listener, events, data);
}
static inline int spa_device_sync(struct spa_device *object, int seq)
SPA_API_IMPL int spa_device_sync(struct spa_device *object, int seq)
{
return spa_api_method_r(int, -ENOTSUP, spa_device, &object->iface, sync, 0,
seq);
}
static inline int spa_device_enum_params(struct spa_device *object, int seq,
SPA_API_IMPL int spa_device_enum_params(struct spa_device *object, int seq,
uint32_t id, uint32_t index, uint32_t max,
const struct spa_pod *filter)
{
return spa_api_method_r(int, -ENOTSUP, spa_device, &object->iface, enum_params, 0,
seq, id, index, max, filter);
}
static inline int spa_device_set_param(struct spa_device *object,
SPA_API_IMPL int spa_device_set_param(struct spa_device *object,
uint32_t id, uint32_t flags,
const struct spa_pod *param)
{

View file

@ -22,7 +22,7 @@ struct spa_result_device_params_data {
struct spa_result_device_params data;
};
static inline void spa_result_func_device_params(void *data, int seq SPA_UNUSED, int res SPA_UNUSED,
SPA_API_IMPL void spa_result_func_device_params(void *data, int seq SPA_UNUSED, int res SPA_UNUSED,
uint32_t type SPA_UNUSED, const void *result)
{
struct spa_result_device_params_data *d =
@ -36,7 +36,7 @@ static inline void spa_result_func_device_params(void *data, int seq SPA_UNUSED,
d->data.param = spa_pod_builder_deref(d->builder, offset);
}
static inline int spa_device_enum_params_sync(struct spa_device *device,
SPA_API_IMPL 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,