projects
/
NeonServV5.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
added stats module for neonserv.krypton-bouncer.de stats
[NeonServV5.git]
/
src
/
modules.h
diff --git
a/src/modules.h
b/src/modules.h
index e729c2e509c9f332cab57d028647588eae121f31..cbb496a61d5e2ceb8b643cd1667b64d6394e31d5 100644
(file)
--- a/
src/modules.h
+++ b/
src/modules.h
@@
-1,4
+1,4
@@
-/* modules.h - NeonServ v5.
3
+/* modules.h - NeonServ v5.
4
* Copyright (C) 2011-2012 Philipp Kreil (pk910)
*
* This program is free software: you can redistribute it and/or modify
* Copyright (C) 2011-2012 Philipp Kreil (pk910)
*
* This program is free software: you can redistribute it and/or modify
@@
-16,8
+16,10
@@
*/
#ifndef _modules_h
#define _modules_h
*/
#ifndef _modules_h
#define _modules_h
+#include "main.h"
-#define MODINFO_STATE_STARTED 0x01
+#define MODINFO_STATE_STARTED 0x01
+#define MODINFO_STATE_PROTECTED 0x02
struct ModuleInfo {
char *name;
struct ModuleInfo {
char *name;
@@
-36,12
+38,14
@@
struct ModuleInfo {
#ifndef DND_FUNCTIONS
void loadModules();
#ifndef DND_FUNCTIONS
void loadModules();
-
int
loadModule(char *name);
+
struct ModuleInfo *
loadModule(char *name);
void start_modules();
void loop_modules();
void stop_modules();
int module_loaded(int module_id);
void start_modules();
void loop_modules();
void stop_modules();
int module_loaded(int module_id);
+/* MODULAR ACCESSIBLE */ char *get_module_name(int module_id);
+
int ext_load_module(char *name);
int ext_unload_module(char *name);
int ext_reload_module(char *name);
int ext_load_module(char *name);
int ext_unload_module(char *name);
int ext_reload_module(char *name);