1
0
mirror of https://github.com/djhackersdev/bemanitools.git synced 2024-12-05 03:17:55 +01:00

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.
This commit is contained in:
icex2 2024-02-25 09:36:53 +01:00
parent df8bf56d0c
commit 8a5a8c8a7c
3 changed files with 24 additions and 0 deletions

View File

@ -3,4 +3,5 @@ libs += avs-util
libs_avs-util := \
src_avs-util := \
core-interop.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