mirror of
https://github.com/djhackersdev/bemanitools.git
synced 2025-02-17 11:18:31 +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:
parent
87b7e53973
commit
fb1442b734
@ -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 \
|
||||||
|
16
src/main/avs-util/core-interop.c
Normal file
16
src/main/avs-util/core-interop.c
Normal 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);
|
||||||
|
}
|
7
src/main/avs-util/core-interop.h
Normal file
7
src/main/avs-util/core-interop.h
Normal 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
|
Loading…
x
Reference in New Issue
Block a user