summaryrefslogtreecommitdiff
path: root/src/login
diff options
context:
space:
mode:
authorHaru <haru@dotalux.com>2015-08-11 02:17:37 +0200
committerHaru <haru@dotalux.com>2015-08-13 17:16:27 +0200
commit959c8a772fe4cb775facfe904d243d644e394bf1 (patch)
treefe0a6fe70527d3cf14c051c7879cad2027617328 /src/login
parent6b6419014b8ba351feaf62452b9e8bb0e983eacd (diff)
downloadhercules-959c8a772fe4cb775facfe904d243d644e394bf1.tar.gz
hercules-959c8a772fe4cb775facfe904d243d644e394bf1.tar.bz2
hercules-959c8a772fe4cb775facfe904d243d644e394bf1.tar.xz
hercules-959c8a772fe4cb775facfe904d243d644e394bf1.zip
Automatic HPM symbol sharing
Signed-off-by: Haru <haru@dotalux.com>
Diffstat (limited to 'src/login')
-rw-r--r--src/login/HPMlogin.c1
-rw-r--r--src/login/login.c6
2 files changed, 1 insertions, 6 deletions
diff --git a/src/login/HPMlogin.c b/src/login/HPMlogin.c
index b1c097a52..895cbad16 100644
--- a/src/login/HPMlogin.c
+++ b/src/login/HPMlogin.c
@@ -47,6 +47,7 @@ void HPM_login_plugin_load_sub(struct hplugin *plugin) {
void HPM_login_do_init(void) {
HPM->datacheck_init(HPMDataCheck, HPMDataCheckLen, HPMDataCheckVer);
+ HPM_shared_symbols(SERVER_TYPE_LOGIN);
}
void HPM_login_do_final(void) {
diff --git a/src/login/login.c b/src/login/login.c
index cf27fe71a..572bd594f 100644
--- a/src/login/login.c
+++ b/src/login/login.c
@@ -1918,11 +1918,6 @@ void do_shutdown_login(void)
}
}
-void login_hp_symbols(void) {
- HPM->share(account_db_sql_up(accounts),"sql_handle");
- HPM->share(login,"login");
-}
-
/**
* --login-config handler
*
@@ -1980,7 +1975,6 @@ int do_init(int argc, char** argv)
login->NET_CONF_NAME = aStrdup("conf/network.conf");
HPM_login_do_init();
- HPM->symbol_defaults_sub = login_hp_symbols;
cmdline->exec(argc, argv, CMDLINE_OPT_PREINIT);
HPM->config_read();
HPM->event(HPET_PRE_INIT);