source: Main/trunk/Server/tw_module.h@ 17

Last change on this file since 17 was 17, checked in by Nishi, on Sep 14, 2024 at 2:41:07 AM

module system kinda works

  • Property svn:keywords set to Id
File size: 414 bytes
Line 
1/* $Id: tw_module.h 17 2024-09-13 17:41:07Z nishi $ */
2
3#ifndef __TW_MODULE_H__
4#define __TW_MODULE_H__
5
6#include "tw_config.h"
7
8struct tw_tool {
9 void (*log)(const char* name, const char* log, ...);
10};
11
12typedef int (*tw_mod_init_t)(struct tw_config* config, struct tw_tool* tools);
13
14void* tw_module_load(const char* path);
15void* tw_module_symbol(void* mod, const char* sym);
16void tw_init_tools(struct tw_tool* tools);
17int tw_module_init(void* mod);
18
19#endif
Note: See TracBrowser for help on using the repository browser.