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

@ -91,7 +91,7 @@ struct spa_cpu { struct spa_interface iface; };
#define SPA_CPU_VM_ACRN (1 << 13)
#define SPA_CPU_VM_POWERVM (1 << 14)
static inline const char *spa_cpu_vm_type_to_string(uint32_t vm_type)
SPA_API_IMPL const char *spa_cpu_vm_type_to_string(uint32_t vm_type)
{
switch(vm_type) {
case SPA_CPU_VM_NONE:
@ -160,27 +160,27 @@ struct spa_cpu_methods {
int (*zero_denormals) (void *object, bool enable);
};
static inline uint32_t spa_cpu_get_flags(struct spa_cpu *c)
SPA_API_IMPL uint32_t spa_cpu_get_flags(struct spa_cpu *c)
{
return spa_api_method_r(uint32_t, 0, spa_cpu, &c->iface, get_flags, 0);
}
static inline int spa_cpu_force_flags(struct spa_cpu *c, uint32_t flags)
SPA_API_IMPL int spa_cpu_force_flags(struct spa_cpu *c, uint32_t flags)
{
return spa_api_method_r(int, -ENOTSUP, spa_cpu, &c->iface, force_flags, 0, flags);
}
static inline uint32_t spa_cpu_get_count(struct spa_cpu *c)
SPA_API_IMPL uint32_t spa_cpu_get_count(struct spa_cpu *c)
{
return spa_api_method_r(uint32_t, 0, spa_cpu, &c->iface, get_count, 0);
}
static inline uint32_t spa_cpu_get_max_align(struct spa_cpu *c)
SPA_API_IMPL uint32_t spa_cpu_get_max_align(struct spa_cpu *c)
{
return spa_api_method_r(uint32_t, 0, spa_cpu, &c->iface, get_max_align, 0);
}
static inline uint32_t spa_cpu_get_vm_type(struct spa_cpu *c)
SPA_API_IMPL uint32_t spa_cpu_get_vm_type(struct spa_cpu *c)
{
return spa_api_method_r(uint32_t, 0, spa_cpu, &c->iface, get_vm_type, 1);
}
static inline int spa_cpu_zero_denormals(struct spa_cpu *c, bool enable)
SPA_API_IMPL int spa_cpu_zero_denormals(struct spa_cpu *c, bool enable)
{
return spa_api_method_r(int, -ENOTSUP, spa_cpu, &c->iface, zero_denormals, 2, enable);
}

View file

@ -81,19 +81,19 @@ struct spa_dbus_connection {
/** \copydoc spa_dbus_connection.get
* \sa spa_dbus_connection.get */
static inline void *spa_dbus_connection_get(struct spa_dbus_connection *conn)
SPA_API_IMPL void *spa_dbus_connection_get(struct spa_dbus_connection *conn)
{
return spa_api_func_r(void *, NULL, conn, get, 0);
}
/** \copydoc spa_dbus_connection.destroy
* \sa spa_dbus_connection.destroy */
static inline void spa_dbus_connection_destroy(struct spa_dbus_connection *conn)
SPA_API_IMPL void spa_dbus_connection_destroy(struct spa_dbus_connection *conn)
{
spa_api_func_v(conn, destroy, 0);
}
/** \copydoc spa_dbus_connection.add_listener
* \sa spa_dbus_connection.add_listener */
static inline void spa_dbus_connection_add_listener(struct spa_dbus_connection *conn,
SPA_API_IMPL void spa_dbus_connection_add_listener(struct spa_dbus_connection *conn,
struct spa_hook *listener,
const struct spa_dbus_connection_events *events,
void *data)
@ -124,7 +124,7 @@ struct spa_dbus_methods {
/** \copydoc spa_dbus_methods.get_connection
* \sa spa_dbus_methods.get_connection
*/
static inline struct spa_dbus_connection *
SPA_API_IMPL struct spa_dbus_connection *
spa_dbus_get_connection(struct spa_dbus *dbus, enum spa_dbus_type type)
{
return spa_api_method_r(struct spa_dbus_connection *, NULL,

View file

@ -53,14 +53,14 @@ struct spa_i18n_methods {
};
SPA_FORMAT_ARG_FUNC(2)
static inline const char *
SPA_API_IMPL const char *
spa_i18n_text(struct spa_i18n *i18n, const char *msgid)
{
return spa_api_method_null_r(const char *, msgid, spa_i18n, &i18n->iface,
text, 0, msgid);
}
static inline const char *
SPA_API_IMPL const char *
spa_i18n_ntext(struct spa_i18n *i18n, const char *msgid,
const char *msgid_plural, unsigned long int n)
{

View file

@ -19,7 +19,7 @@ extern "C" {
* \{
*/
static inline SPA_PRINTF_FUNC(7, 0) void spa_log_impl_logtv(void *object SPA_UNUSED,
SPA_API_IMPL SPA_PRINTF_FUNC(7, 0) void spa_log_impl_logtv(void *object SPA_UNUSED,
enum spa_log_level level,
const struct spa_log_topic *topic,
const char *file,
@ -49,7 +49,7 @@ static inline SPA_PRINTF_FUNC(7, 0) void spa_log_impl_logtv(void *object SPA_UNU
fputs(location, stderr);
}
static inline SPA_PRINTF_FUNC(7,8) void spa_log_impl_logt(void *object,
SPA_API_IMPL SPA_PRINTF_FUNC(7,8) void spa_log_impl_logt(void *object,
enum spa_log_level level,
const struct spa_log_topic *topic,
const char *file,
@ -63,7 +63,7 @@ static inline SPA_PRINTF_FUNC(7,8) void spa_log_impl_logt(void *object,
va_end(args);
}
static inline SPA_PRINTF_FUNC(6, 0) void spa_log_impl_logv(void *object,
SPA_API_IMPL SPA_PRINTF_FUNC(6, 0) void spa_log_impl_logv(void *object,
enum spa_log_level level,
const char *file,
int line,
@ -75,7 +75,7 @@ static inline SPA_PRINTF_FUNC(6, 0) void spa_log_impl_logv(void *object,
spa_log_impl_logtv(object, level, NULL, file, line, func, fmt, args);
}
static inline SPA_PRINTF_FUNC(6,7) void spa_log_impl_log(void *object,
SPA_API_IMPL SPA_PRINTF_FUNC(6,7) void spa_log_impl_log(void *object,
enum spa_log_level level,
const char *file,
int line,
@ -88,7 +88,7 @@ static inline SPA_PRINTF_FUNC(6,7) void spa_log_impl_log(void *object,
va_end(args);
}
static inline void spa_log_impl_topic_init(void *object SPA_UNUSED, struct spa_log_topic *topic SPA_UNUSED)
SPA_API_IMPL void spa_log_impl_topic_init(void *object SPA_UNUSED, struct spa_log_topic *topic SPA_UNUSED)
{
/* noop */
}

View file

@ -213,7 +213,7 @@ struct spa_log_methods {
#define SPA_LOG_TOPIC(v, t) \
(struct spa_log_topic){ .version = (v), .topic = (t)}
static inline void spa_log_topic_init(struct spa_log *log, struct spa_log_topic *topic)
SPA_API_IMPL void spa_log_topic_init(struct spa_log *log, struct spa_log_topic *topic)
{
if (SPA_UNLIKELY(!log))
return;
@ -221,7 +221,7 @@ static inline void spa_log_topic_init(struct spa_log *log, struct spa_log_topic
spa_interface_call(&log->iface, struct spa_log_methods, topic_init, 1, topic);
}
static inline bool spa_log_level_topic_enabled(const struct spa_log *log,
SPA_API_IMPL bool spa_log_level_topic_enabled(const struct spa_log *log,
const struct spa_log_topic *topic,
enum spa_log_level level)
{
@ -256,7 +256,7 @@ static inline bool spa_log_level_topic_enabled(const struct spa_log *log,
/* Transparently calls to version 0 logv if v1 is not supported */
SPA_PRINTF_FUNC(7, 0)
static inline void spa_log_logtv(struct spa_log *l, enum spa_log_level level,
SPA_API_IMPL void spa_log_logtv(struct spa_log *l, enum spa_log_level level,
const struct spa_log_topic *topic, const char *file, int line,
const char *func, const char *fmt, va_list args)
{

View file

@ -127,22 +127,22 @@ struct spa_loop_methods {
void *user_data);
};
static inline int spa_loop_add_source(struct spa_loop *object, struct spa_source *source)
SPA_API_IMPL int spa_loop_add_source(struct spa_loop *object, struct spa_source *source)
{
return spa_api_method_r(int, -ENOTSUP,
spa_loop, &object->iface, add_source, 0, source);
}
static inline int spa_loop_update_source(struct spa_loop *object, struct spa_source *source)
SPA_API_IMPL int spa_loop_update_source(struct spa_loop *object, struct spa_source *source)
{
return spa_api_method_r(int, -ENOTSUP,
spa_loop, &object->iface, update_source, 0, source);
}
static inline int spa_loop_remove_source(struct spa_loop *object, struct spa_source *source)
SPA_API_IMPL int spa_loop_remove_source(struct spa_loop *object, struct spa_source *source)
{
return spa_api_method_r(int, -ENOTSUP,
spa_loop, &object->iface, remove_source, 0, source);
}
static inline int spa_loop_invoke(struct spa_loop *object,
SPA_API_IMPL int spa_loop_invoke(struct spa_loop *object,
spa_invoke_func_t func, uint32_t seq, const void *data,
size_t size, bool block, void *user_data)
{
@ -165,14 +165,14 @@ struct spa_loop_control_hooks {
void (*after) (void *data);
};
static inline void spa_loop_control_hook_before(struct spa_hook_list *l)
SPA_API_IMPL void spa_loop_control_hook_before(struct spa_hook_list *l)
{
struct spa_hook *h;
spa_list_for_each_reverse(h, &l->list, link)
spa_callbacks_call_fast(&h->cb, struct spa_loop_control_hooks, before, 0);
}
static inline void spa_loop_control_hook_after(struct spa_hook_list *l)
SPA_API_IMPL void spa_loop_control_hook_after(struct spa_hook_list *l)
{
struct spa_hook *h;
spa_list_for_each(h, &l->list, link)
@ -239,39 +239,39 @@ struct spa_loop_control_methods {
int (*check) (void *object);
};
static inline int spa_loop_control_get_fd(struct spa_loop_control *object)
SPA_API_IMPL int spa_loop_control_get_fd(struct spa_loop_control *object)
{
return spa_api_method_r(int, -ENOTSUP,
spa_loop_control, &object->iface, get_fd, 0);
}
static inline void spa_loop_control_add_hook(struct spa_loop_control *object,
SPA_API_IMPL void spa_loop_control_add_hook(struct spa_loop_control *object,
struct spa_hook *hook, const struct spa_loop_control_hooks *hooks,
void *data)
{
spa_api_method_v(spa_loop_control, &object->iface, add_hook, 0,
hook, hooks, data);
}
static inline void spa_loop_control_enter(struct spa_loop_control *object)
SPA_API_IMPL void spa_loop_control_enter(struct spa_loop_control *object)
{
spa_api_method_v(spa_loop_control, &object->iface, enter, 0);
}
static inline void spa_loop_control_leave(struct spa_loop_control *object)
SPA_API_IMPL void spa_loop_control_leave(struct spa_loop_control *object)
{
spa_api_method_v(spa_loop_control, &object->iface, leave, 0);
}
static inline int spa_loop_control_iterate(struct spa_loop_control *object,
SPA_API_IMPL int spa_loop_control_iterate(struct spa_loop_control *object,
int timeout)
{
return spa_api_method_r(int, -ENOTSUP,
spa_loop_control, &object->iface, iterate, 0, timeout);
}
static inline int spa_loop_control_iterate_fast(struct spa_loop_control *object,
SPA_API_IMPL int spa_loop_control_iterate_fast(struct spa_loop_control *object,
int timeout)
{
return spa_api_method_fast_r(int, -ENOTSUP,
spa_loop_control, &object->iface, iterate, 0, timeout);
}
static inline int spa_loop_control_check(struct spa_loop_control *object)
SPA_API_IMPL int spa_loop_control_check(struct spa_loop_control *object)
{
return spa_api_method_r(int, -ENOTSUP,
spa_loop_control, &object->iface, check, 1);
@ -326,51 +326,51 @@ struct spa_loop_utils_methods {
void (*destroy_source) (void *object, struct spa_source *source);
};
static inline struct spa_source *
SPA_API_IMPL struct spa_source *
spa_loop_utils_add_io(struct spa_loop_utils *object, int fd, uint32_t mask,
bool close, spa_source_io_func_t func, void *data)
{
return spa_api_method_r(struct spa_source *, NULL,
spa_loop_utils, &object->iface, add_io, 0, fd, mask, close, func, data);
}
static inline int spa_loop_utils_update_io(struct spa_loop_utils *object,
SPA_API_IMPL int spa_loop_utils_update_io(struct spa_loop_utils *object,
struct spa_source *source, uint32_t mask)
{
return spa_api_method_r(int, -ENOTSUP,
spa_loop_utils, &object->iface, update_io, 0, source, mask);
}
static inline struct spa_source *
SPA_API_IMPL struct spa_source *
spa_loop_utils_add_idle(struct spa_loop_utils *object, bool enabled,
spa_source_idle_func_t func, void *data)
{
return spa_api_method_r(struct spa_source *, NULL,
spa_loop_utils, &object->iface, add_idle, 0, enabled, func, data);
}
static inline int spa_loop_utils_enable_idle(struct spa_loop_utils *object,
SPA_API_IMPL int spa_loop_utils_enable_idle(struct spa_loop_utils *object,
struct spa_source *source, bool enabled)
{
return spa_api_method_r(int, -ENOTSUP,
spa_loop_utils, &object->iface, enable_idle, 0, source, enabled);
}
static inline struct spa_source *
SPA_API_IMPL struct spa_source *
spa_loop_utils_add_event(struct spa_loop_utils *object, spa_source_event_func_t func, void *data)
{
return spa_api_method_r(struct spa_source *, NULL,
spa_loop_utils, &object->iface, add_event, 0, func, data);
}
static inline int spa_loop_utils_signal_event(struct spa_loop_utils *object,
SPA_API_IMPL int spa_loop_utils_signal_event(struct spa_loop_utils *object,
struct spa_source *source)
{
return spa_api_method_r(int, -ENOTSUP,
spa_loop_utils, &object->iface, signal_event, 0, source);
}
static inline struct spa_source *
SPA_API_IMPL struct spa_source *
spa_loop_utils_add_timer(struct spa_loop_utils *object, spa_source_timer_func_t func, void *data)
{
return spa_api_method_r(struct spa_source *, NULL,
spa_loop_utils, &object->iface, add_timer, 0, func, data);
}
static inline int spa_loop_utils_update_timer(struct spa_loop_utils *object,
SPA_API_IMPL int spa_loop_utils_update_timer(struct spa_loop_utils *object,
struct spa_source *source, struct timespec *value,
struct timespec *interval, bool absolute)
{
@ -378,7 +378,7 @@ static inline int spa_loop_utils_update_timer(struct spa_loop_utils *object,
spa_loop_utils, &object->iface, update_timer, 0, source,
value, interval, absolute);
}
static inline struct spa_source *
SPA_API_IMPL struct spa_source *
spa_loop_utils_add_signal(struct spa_loop_utils *object, int signal_number,
spa_source_signal_func_t func, void *data)
{
@ -386,7 +386,7 @@ spa_loop_utils_add_signal(struct spa_loop_utils *object, int signal_number,
spa_loop_utils, &object->iface, add_signal, 0,
signal_number, func, data);
}
static inline void spa_loop_utils_destroy_source(struct spa_loop_utils *object,
SPA_API_IMPL void spa_loop_utils_destroy_source(struct spa_loop_utils *object,
struct spa_source *source)
{
spa_api_method_v(spa_loop_utils, &object->iface, destroy_source, 0, source);

View file

@ -48,14 +48,14 @@ struct spa_plugin_loader_methods {
int (*unload)(void *object, struct spa_handle *handle);
};
static inline struct spa_handle *
SPA_API_IMPL struct spa_handle *
spa_plugin_loader_load(struct spa_plugin_loader *loader, const char *factory_name, const struct spa_dict *info)
{
return spa_api_method_null_r(struct spa_handle *, NULL, spa_plugin_loader, &loader->iface,
load, 0, factory_name, info);
}
static inline int
SPA_API_IMPL int
spa_plugin_loader_unload(struct spa_plugin_loader *loader, struct spa_handle *handle)
{
return spa_api_method_null_r(int, -1, spa_plugin_loader, &loader->iface,

View file

@ -54,13 +54,13 @@ struct spa_handle {
int (*clear) (struct spa_handle *handle);
};
static inline int
SPA_API_IMPL int
spa_handle_get_interface(struct spa_handle *object,
const char *type, void **iface)
{
return spa_api_func_r(int, -ENOTSUP, object, get_interface, 0, type, iface);
}
static inline int
SPA_API_IMPL int
spa_handle_clear(struct spa_handle *object)
{
return spa_api_func_r(int, -ENOTSUP, object, clear, 0);
@ -85,7 +85,7 @@ struct spa_support {
};
/** Find a support item of the given type */
static inline void *spa_support_find(const struct spa_support *support,
SPA_API_IMPL void *spa_support_find(const struct spa_support *support,
uint32_t n_support,
const char *type)
{
@ -170,13 +170,13 @@ struct spa_handle_factory {
uint32_t *index);
};
static inline size_t
SPA_API_IMPL size_t
spa_handle_factory_get_size(const struct spa_handle_factory *object,
const struct spa_dict *params)
{
return spa_api_func_r(size_t, 0, object, get_size, 1, params);
}
static inline int
SPA_API_IMPL int
spa_handle_factory_init(const struct spa_handle_factory *object,
struct spa_handle *handle, const struct spa_dict *info,
const struct spa_support *support, uint32_t n_support)
@ -184,7 +184,7 @@ spa_handle_factory_init(const struct spa_handle_factory *object,
return spa_api_func_r(int, -ENOTSUP, object, init, 1, handle, info,
support, n_support);
}
static inline int
SPA_API_IMPL int
spa_handle_factory_enum_interface_info(const struct spa_handle_factory *object,
const struct spa_interface_info **info, uint32_t *index)
{

View file

@ -98,60 +98,60 @@ struct spa_system_methods {
int (*signalfd_read) (void *object, int fd, int *signal);
};
static inline ssize_t spa_system_read(struct spa_system *object, int fd, void *buf, size_t count)
SPA_API_IMPL ssize_t spa_system_read(struct spa_system *object, int fd, void *buf, size_t count)
{
return spa_api_method_fast_r(ssize_t, -ENOTSUP, spa_system, &object->iface, read, 0, fd, buf, count);
}
static inline ssize_t spa_system_write(struct spa_system *object, int fd, const void *buf, size_t count)
SPA_API_IMPL ssize_t spa_system_write(struct spa_system *object, int fd, const void *buf, size_t count)
{
return spa_api_method_fast_r(ssize_t, -ENOTSUP, spa_system, &object->iface, write, 0, fd, buf, count);
}
#define spa_system_ioctl(object,fd,request,...) \
spa_api_method_fast_r(int, -ENOTSUP, spa_system, &object->iface, ioctl, 0, fd, request, ##__VA_ARGS__)
static inline int spa_system_close(struct spa_system *object, int fd)
SPA_API_IMPL int spa_system_close(struct spa_system *object, int fd)
{
return spa_api_method_fast_r(int, -ENOTSUP, spa_system, &object->iface, close, 0, fd);
}
static inline int spa_system_clock_gettime(struct spa_system *object,
SPA_API_IMPL int spa_system_clock_gettime(struct spa_system *object,
int clockid, struct timespec *value)
{
return spa_api_method_fast_r(int, -ENOTSUP, spa_system, &object->iface, clock_gettime, 0, clockid, value);
}
static inline int spa_system_clock_getres(struct spa_system *object,
SPA_API_IMPL int spa_system_clock_getres(struct spa_system *object,
int clockid, struct timespec *res)
{
return spa_api_method_fast_r(int, -ENOTSUP, spa_system, &object->iface, clock_getres, 0, clockid, res);
}
static inline int spa_system_pollfd_create(struct spa_system *object, int flags)
SPA_API_IMPL int spa_system_pollfd_create(struct spa_system *object, int flags)
{
return spa_api_method_fast_r(int, -ENOTSUP, spa_system, &object->iface, pollfd_create, 0, flags);
}
static inline int spa_system_pollfd_add(struct spa_system *object, int pfd, int fd, uint32_t events, void *data)
SPA_API_IMPL int spa_system_pollfd_add(struct spa_system *object, int pfd, int fd, uint32_t events, void *data)
{
return spa_api_method_fast_r(int, -ENOTSUP, spa_system, &object->iface, pollfd_add, 0, pfd, fd, events, data);
}
static inline int spa_system_pollfd_mod(struct spa_system *object, int pfd, int fd, uint32_t events, void *data)
SPA_API_IMPL int spa_system_pollfd_mod(struct spa_system *object, int pfd, int fd, uint32_t events, void *data)
{
return spa_api_method_fast_r(int, -ENOTSUP, spa_system, &object->iface, pollfd_mod, 0, pfd, fd, events, data);
}
static inline int spa_system_pollfd_del(struct spa_system *object, int pfd, int fd)
SPA_API_IMPL int spa_system_pollfd_del(struct spa_system *object, int pfd, int fd)
{
return spa_api_method_fast_r(int, -ENOTSUP, spa_system, &object->iface, pollfd_del, 0, pfd, fd);
}
static inline int spa_system_pollfd_wait(struct spa_system *object, int pfd,
SPA_API_IMPL int spa_system_pollfd_wait(struct spa_system *object, int pfd,
struct spa_poll_event *ev, int n_ev, int timeout)
{
return spa_api_method_fast_r(int, -ENOTSUP, spa_system, &object->iface, pollfd_wait, 0, pfd, ev, n_ev, timeout);
}
static inline int spa_system_timerfd_create(struct spa_system *object, int clockid, int flags)
SPA_API_IMPL int spa_system_timerfd_create(struct spa_system *object, int clockid, int flags)
{
return spa_api_method_fast_r(int, -ENOTSUP, spa_system, &object->iface, timerfd_create, 0, clockid, flags);
}
static inline int spa_system_timerfd_settime(struct spa_system *object,
SPA_API_IMPL int spa_system_timerfd_settime(struct spa_system *object,
int fd, int flags,
const struct itimerspec *new_value,
struct itimerspec *old_value)
@ -160,40 +160,40 @@ static inline int spa_system_timerfd_settime(struct spa_system *object,
fd, flags, new_value, old_value);
}
static inline int spa_system_timerfd_gettime(struct spa_system *object,
SPA_API_IMPL int spa_system_timerfd_gettime(struct spa_system *object,
int fd, struct itimerspec *curr_value)
{
return spa_api_method_fast_r(int, -ENOTSUP, spa_system, &object->iface, timerfd_gettime, 0,
fd, curr_value);
}
static inline int spa_system_timerfd_read(struct spa_system *object, int fd, uint64_t *expirations)
SPA_API_IMPL int spa_system_timerfd_read(struct spa_system *object, int fd, uint64_t *expirations)
{
return spa_api_method_fast_r(int, -ENOTSUP, spa_system, &object->iface, timerfd_read, 0,
fd, expirations);
}
static inline int spa_system_eventfd_create(struct spa_system *object, int flags)
SPA_API_IMPL int spa_system_eventfd_create(struct spa_system *object, int flags)
{
return spa_api_method_fast_r(int, -ENOTSUP, spa_system, &object->iface, eventfd_create, 0, flags);
}
static inline int spa_system_eventfd_write(struct spa_system *object, int fd, uint64_t count)
SPA_API_IMPL int spa_system_eventfd_write(struct spa_system *object, int fd, uint64_t count)
{
return spa_api_method_fast_r(int, -ENOTSUP, spa_system, &object->iface, eventfd_write, 0,
fd, count);
}
static inline int spa_system_eventfd_read(struct spa_system *object, int fd, uint64_t *count)
SPA_API_IMPL int spa_system_eventfd_read(struct spa_system *object, int fd, uint64_t *count)
{
return spa_api_method_fast_r(int, -ENOTSUP, spa_system, &object->iface, eventfd_read, 0,
fd, count);
}
static inline int spa_system_signalfd_create(struct spa_system *object, int signal, int flags)
SPA_API_IMPL int spa_system_signalfd_create(struct spa_system *object, int signal, int flags)
{
return spa_api_method_fast_r(int, -ENOTSUP, spa_system, &object->iface, signalfd_create, 0,
signal, flags);
}
static inline int spa_system_signalfd_read(struct spa_system *object, int fd, int *signal)
SPA_API_IMPL int spa_system_signalfd_read(struct spa_system *object, int fd, int *signal)
{
return spa_api_method_fast_r(int, -ENOTSUP, spa_system, &object->iface, signalfd_read, 0,
fd, signal);

View file

@ -58,7 +58,7 @@ struct spa_thread_utils_methods {
/** \copydoc spa_thread_utils_methods.create
* \sa spa_thread_utils_methods.create */
static inline struct spa_thread *spa_thread_utils_create(struct spa_thread_utils *o,
SPA_API_IMPL struct spa_thread *spa_thread_utils_create(struct spa_thread_utils *o,
const struct spa_dict *props, void *(*start_routine)(void*), void *arg)
{
return spa_api_method_r(struct spa_thread *, NULL,
@ -68,7 +68,7 @@ static inline struct spa_thread *spa_thread_utils_create(struct spa_thread_utils
/** \copydoc spa_thread_utils_methods.join
* \sa spa_thread_utils_methods.join */
static inline int spa_thread_utils_join(struct spa_thread_utils *o,
SPA_API_IMPL int spa_thread_utils_join(struct spa_thread_utils *o,
struct spa_thread *thread, void **retval)
{
return spa_api_method_r(int, -ENOTSUP,
@ -78,7 +78,7 @@ static inline int spa_thread_utils_join(struct spa_thread_utils *o,
/** \copydoc spa_thread_utils_methods.get_rt_range
* \sa spa_thread_utils_methods.get_rt_range */
static inline int spa_thread_utils_get_rt_range(struct spa_thread_utils *o,
SPA_API_IMPL int spa_thread_utils_get_rt_range(struct spa_thread_utils *o,
const struct spa_dict *props, int *min, int *max)
{
return spa_api_method_r(int, -ENOTSUP,
@ -88,7 +88,7 @@ static inline int spa_thread_utils_get_rt_range(struct spa_thread_utils *o,
/** \copydoc spa_thread_utils_methods.acquire_rt
* \sa spa_thread_utils_methods.acquire_rt */
static inline int spa_thread_utils_acquire_rt(struct spa_thread_utils *o,
SPA_API_IMPL int spa_thread_utils_acquire_rt(struct spa_thread_utils *o,
struct spa_thread *thread, int priority)
{
return spa_api_method_r(int, -ENOTSUP,
@ -98,7 +98,7 @@ static inline int spa_thread_utils_acquire_rt(struct spa_thread_utils *o,
/** \copydoc spa_thread_utils_methods.drop_rt
* \sa spa_thread_utils_methods.drop_rt */
static inline int spa_thread_utils_drop_rt(struct spa_thread_utils *o,
SPA_API_IMPL int spa_thread_utils_drop_rt(struct spa_thread_utils *o,
struct spa_thread *thread)
{
return spa_api_method_r(int, -ENOTSUP,