2015-03-27 15:44:40 +00:00
|
|
|
#ifndef MODULE_H
|
|
|
|
#define MODULE_H
|
|
|
|
|
|
|
|
#include "irc.h"
|
2024-02-13 10:56:23 +00:00
|
|
|
#include "events.h"
|
2015-03-27 15:44:40 +00:00
|
|
|
|
2024-02-13 23:47:20 +00:00
|
|
|
#ifdef _WIN32
|
|
|
|
#include <windows.h>
|
|
|
|
#endif
|
|
|
|
|
2024-02-13 07:22:10 +00:00
|
|
|
struct module {
|
|
|
|
char *name;
|
2024-02-13 23:47:20 +00:00
|
|
|
char *author;
|
|
|
|
char *version;
|
|
|
|
char *description;
|
|
|
|
|
|
|
|
char *fname;
|
|
|
|
|
|
|
|
#ifdef _WIN32
|
|
|
|
HMODULE handle;
|
|
|
|
FARPROC init;
|
|
|
|
FARPROC unload;
|
|
|
|
#else
|
|
|
|
void *handle;
|
|
|
|
void (*init)();
|
|
|
|
void (*unload)();
|
|
|
|
#endif
|
|
|
|
};
|
|
|
|
|
|
|
|
struct mods {
|
|
|
|
int count;
|
|
|
|
struct module *modules;
|
2024-02-13 07:22:10 +00:00
|
|
|
};
|
2015-03-27 15:44:40 +00:00
|
|
|
|
2024-02-13 23:47:20 +00:00
|
|
|
void init_mods();
|
|
|
|
void load_module(struct irc_conn *bot, char *where, char *stype, char *file);
|
2024-02-13 07:22:10 +00:00
|
|
|
|
|
|
|
|
|
|
|
#endif
|