mirror of
https://github.com/cloudwu/skynet.git
synced 2026-07-24 20:23:06 +00:00
change source dir
This commit is contained in:
26
skynet-src/skynet_module.h
Normal file
26
skynet-src/skynet_module.h
Normal file
@@ -0,0 +1,26 @@
|
||||
#ifndef SKYNET_MODULE_H
|
||||
#define SKYNET_MODULE_H
|
||||
|
||||
struct skynet_context;
|
||||
|
||||
typedef void * (*skynet_dl_create)(void);
|
||||
typedef int (*skynet_dl_init)(void * inst, struct skynet_context *, const char * parm);
|
||||
typedef void (*skynet_dl_release)(void * inst);
|
||||
|
||||
struct skynet_module {
|
||||
const char * name;
|
||||
void * module;
|
||||
skynet_dl_create create;
|
||||
skynet_dl_init init;
|
||||
skynet_dl_release release;
|
||||
};
|
||||
|
||||
void skynet_module_insert(struct skynet_module *mod);
|
||||
struct skynet_module * skynet_module_query(const char * name);
|
||||
void * skynet_module_instance_create(struct skynet_module *);
|
||||
int skynet_module_instance_init(struct skynet_module *, void * inst, struct skynet_context *ctx, const char * parm);
|
||||
void skynet_module_instance_release(struct skynet_module *, void *inst);
|
||||
|
||||
void skynet_module_init(const char *path);
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user