tewi/Server/tw_module.h
Nishi 219b8523ce module system kinda works
git-svn-id: file:///raid/svn-personal/tewi/trunk@17 8739d7e6-ffea-ec47-b151-bdff447c6205
2024-09-13 17:41:07 +00:00

20 lines
414 B
C

/* $Id$ */
#ifndef __TW_MODULE_H__
#define __TW_MODULE_H__
#include "tw_config.h"
struct tw_tool {
void (*log)(const char* name, const char* log, ...);
};
typedef int (*tw_mod_init_t)(struct tw_config* config, struct tw_tool* tools);
void* tw_module_load(const char* path);
void* tw_module_symbol(void* mod, const char* sym);
void tw_init_tools(struct tw_tool* tools);
int tw_module_init(void* mod);
#endif