summaryrefslogtreecommitdiff
path: root/src/common/HPMi.h
diff options
context:
space:
mode:
authorHaru <haru@dotalux.com>2015-08-11 01:57:27 +0200
committerHaru <haru@dotalux.com>2015-08-15 00:51:45 +0200
commit7c52605cabb4f5447055344733d69555c1948956 (patch)
tree190d940217ed17d231cde1af9feea606fb3842a6 /src/common/HPMi.h
parent30987271e6d3c9eb202997494690ed102adeca87 (diff)
downloadhercules-7c52605cabb4f5447055344733d69555c1948956.tar.gz
hercules-7c52605cabb4f5447055344733d69555c1948956.tar.bz2
hercules-7c52605cabb4f5447055344733d69555c1948956.tar.xz
hercules-7c52605cabb4f5447055344733d69555c1948956.zip
Moved sql_handle into the HPMi interface
Signed-off-by: Haru <haru@dotalux.com>
Diffstat (limited to 'src/common/HPMi.h')
-rw-r--r--src/common/HPMi.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/common/HPMi.h b/src/common/HPMi.h
index 244a9e0ab..5f677cce3 100644
--- a/src/common/HPMi.h
+++ b/src/common/HPMi.h
@@ -211,12 +211,13 @@ struct HPMi_interface {
bool (*addConf) (unsigned int pluginID, enum HPluginConfType type, char *name, void (*func) (const char *val));
/* pc group permission */
void (*addPCGPermission) (unsigned int pluginID, char *name, unsigned int *mask);
+
+ Sql *sql_handle;
};
#ifndef HERCULES_CORE
HPExport struct HPMi_interface HPMi_s;
HPExport struct HPMi_interface *HPMi;
HPExport void *(*import_symbol) (char *name, unsigned int pID);
-HPExport Sql *mysql_handle;
#define HPM_SYMBOL(n, s) ((s) = import_symbol((n),HPMi->pid))
#endif // !HERCULES_CORE