Compare commits

...

1 Commits
pr290 ... pr291

Author SHA1 Message Date
icex2
fb1442b734 feat: Add helper to set avs implementations
Doesn't really reduce boiler plate but adds
clarity with a more meaningful function name
what the operation does.
2024-02-25 09:30:53 +01:00
3 changed files with 24 additions and 0 deletions

View File

@@ -3,4 +3,5 @@ libs += avs-util
libs_avs-util := \ libs_avs-util := \
src_avs-util := \ src_avs-util := \
core-interop.c \
error.c \ error.c \

View File

@@ -0,0 +1,16 @@
#include "core/log.h"
#include "core/thread.h"
#include "imports/avs.h"
void avs_util_core_interop_log_avs_impl_set()
{
core_log_impl_set(
log_body_misc, log_body_info, log_body_warning, log_body_fatal);
}
void avs_util_core_interop_thread_avs_impl_set()
{
core_thread_impl_set(
avs_thread_create, avs_thread_join, avs_thread_destroy);
}

View File

@@ -0,0 +1,7 @@
#ifndef AVS_UTIL_CORE_INTEROP_H
#define AVS_UTIL_CORE_INTEROP_H
void avs_util_core_interop_log_avs_impl_set();
void avs_util_core_interop_thread_avs_impl_set();
#endif