summaryrefslogtreecommitdiff
path: root/src/common
diff options
context:
space:
mode:
authorHaru <haru@dotalux.com>2015-08-11 01:48:47 +0200
committerHaru <haru@dotalux.com>2015-08-15 00:51:44 +0200
commit30987271e6d3c9eb202997494690ed102adeca87 (patch)
treecadf26be9bef264382967f9d9db9197e6fb968cb /src/common
parent22bd368e5d4d8d61a7189d03f52c3afd90c0729e (diff)
downloadhercules-30987271e6d3c9eb202997494690ed102adeca87.tar.gz
hercules-30987271e6d3c9eb202997494690ed102adeca87.tar.bz2
hercules-30987271e6d3c9eb202997494690ed102adeca87.tar.xz
hercules-30987271e6d3c9eb202997494690ed102adeca87.zip
HPM Hooks Update
Diffstat (limited to 'src/common')
-rw-r--r--src/common/HPMDataCheck.h1
-rw-r--r--src/common/HPMSymbols.inc.h6
2 files changed, 7 insertions, 0 deletions
diff --git a/src/common/HPMDataCheck.h b/src/common/HPMDataCheck.h
index a219f075e..fc9a92852 100644
--- a/src/common/HPMDataCheck.h
+++ b/src/common/HPMDataCheck.h
@@ -110,6 +110,7 @@ HPExport const struct s_HPMDataCheck HPMDataCheck[] = {
#ifdef COMMON_CORE_H
{ "CmdlineArgData", sizeof(struct CmdlineArgData), SERVER_TYPE_ALL },
{ "cmdline_interface", sizeof(struct cmdline_interface), SERVER_TYPE_ALL },
+ { "core_interface", sizeof(struct core_interface), SERVER_TYPE_ALL },
#else
#define COMMON_CORE_H
#endif // COMMON_CORE_H
diff --git a/src/common/HPMSymbols.inc.h b/src/common/HPMSymbols.inc.h
index c8000326f..3a4c5852c 100644
--- a/src/common/HPMSymbols.inc.h
+++ b/src/common/HPMSymbols.inc.h
@@ -41,6 +41,9 @@ struct cmdline_interface *cmdline;
#ifdef COMMON_CONSOLE_H /* console */
struct console_interface *console;
#endif // COMMON_CONSOLE_H
+#ifdef COMMON_CORE_H /* core */
+struct core_interface *core;
+#endif // COMMON_CORE_H
#ifdef COMMON_DB_H /* DB */
struct db_interface *DB;
#endif // COMMON_DB_H
@@ -261,6 +264,9 @@ if ((server_type&(SERVER_TYPE_ALL)) && !HPM_SYMBOL("cmdline", cmdline)) return "
#ifdef COMMON_CONSOLE_H /* console */
if ((server_type&(SERVER_TYPE_ALL)) && !HPM_SYMBOL("console", console)) return "console";
#endif // COMMON_CONSOLE_H
+#ifdef COMMON_CORE_H /* core */
+if ((server_type&(SERVER_TYPE_ALL)) && !HPM_SYMBOL("core", core)) return "core";
+#endif // COMMON_CORE_H
#ifdef COMMON_DB_H /* DB */
if ((server_type&(SERVER_TYPE_ALL)) && !HPM_SYMBOL("DB", DB)) return "DB";
#endif // COMMON_DB_H