summaryrefslogtreecommitdiff
path: root/src/common/HPM.c
diff options
context:
space:
mode:
authorHaru <haru@dotalux.com>2015-08-07 16:20:12 +0200
committerHaru <haru@dotalux.com>2015-08-15 00:51:40 +0200
commitcbf798a87f87aafbb338d634d05181491afe2984 (patch)
tree530fb26e78ca6bc6415c47ddd6a72e4b5d03b00c /src/common/HPM.c
parentef207268ed7e5faa399a9af8c694639c9ff1d09f (diff)
downloadhercules-cbf798a87f87aafbb338d634d05181491afe2984.tar.gz
hercules-cbf798a87f87aafbb338d634d05181491afe2984.tar.bz2
hercules-cbf798a87f87aafbb338d634d05181491afe2984.tar.xz
hercules-cbf798a87f87aafbb338d634d05181491afe2984.zip
Added HPMHooking support for common interfaces
Signed-off-by: Haru <haru@dotalux.com>
Diffstat (limited to 'src/common/HPM.c')
-rw-r--r--src/common/HPM.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/common/HPM.c b/src/common/HPM.c
index caf0f9471..d82faee1f 100644
--- a/src/common/HPM.c
+++ b/src/common/HPM.c
@@ -12,6 +12,7 @@
#include "common/core.h"
#include "common/db.h"
#include "common/malloc.h"
+#include "common/mapindex.h"
#include "common/mmo.h"
#include "common/showmsg.h"
#include "common/socket.h"
@@ -767,8 +768,13 @@ void hplugins_share_defaults(void) {
HPM->share(&arg_c,"arg_c");
HPM->share(SERVER_NAME,"SERVER_NAME");
HPM->share(&SERVER_TYPE,"SERVER_TYPE");
- HPM->share(DB, "DB");
HPM->share(HPMiMalloc, "iMalloc");
+ HPM->share(cmdline,"cmdline");
+ /* console */
+ HPM->share(console,"console");
+ /* db */
+ HPM->share(DB, "DB");
+ /* nullpo */
HPM->share(nullpo,"nullpo");
/* showmsg */
HPM->share(showmsg,"showmsg");
@@ -786,6 +792,8 @@ void hplugins_share_defaults(void) {
HPM->share(libconfig,"libconfig");
/* sysinfo */
HPM->share(sysinfo,"sysinfo");
+ /* utils */
+ HPM->share(HCache,"HCache");
}
void hpm_init(void) {