mirror of
https://github.com/djhackersdev/bemanitools.git
synced 2026-08-09 11:47:16 -05:00
fix: Expose typedef in header
Required to re-use it in other modules to type the hook api get function
This commit is contained in:
parent
d3b3951eee
commit
b9819c9cb5
|
|
@ -13,8 +13,6 @@
|
|||
#include "util/mem.h"
|
||||
#include "util/str.h"
|
||||
|
||||
typedef void (*module_hook_api_get_t)(bt_hook_api_t *api);
|
||||
|
||||
struct module_hook {
|
||||
module_t *module;
|
||||
|
||||
|
|
@ -22,7 +20,7 @@ struct module_hook {
|
|||
bt_module_core_log_api_set_t core_log_api_set;
|
||||
bt_module_core_thread_api_set_t core_thread_api_set;
|
||||
|
||||
module_hook_api_get_t api_get;
|
||||
bt_module_hook_api_get_t api_get;
|
||||
};
|
||||
|
||||
static void _module_hook_resolve(module_hook_t *module)
|
||||
|
|
@ -37,7 +35,7 @@ static void _module_hook_resolve(module_hook_t *module)
|
|||
(bt_module_core_thread_api_set_t) module_func_optional_resolve(
|
||||
module->module, "bt_module_core_thread_api_set");
|
||||
|
||||
module->api_get = (module_hook_api_get_t) module_func_optional_resolve(
|
||||
module->api_get = (bt_module_hook_api_get_t) module_func_optional_resolve(
|
||||
module->module, "bt_module_hook_api_get");
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -8,6 +8,8 @@
|
|||
|
||||
#include "api/hook.h"
|
||||
|
||||
typedef void (*bt_module_hook_api_get_t)(bt_hook_api_t *api);
|
||||
|
||||
typedef struct module_hook module_hook_t;
|
||||
|
||||
void module_hook_load(const char *path, module_hook_t **module);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user