diff options
author | Haru <haru@dotalux.com> | 2015-08-11 02:17:37 +0200 |
---|---|---|
committer | Haru <haru@dotalux.com> | 2015-08-15 00:51:45 +0200 |
commit | e7c2f7d827ad286dc826e483391e64b8ffe2720b (patch) | |
tree | 16cab3d257a795c015dfd55c0eaf2447d0f52462 /src/login | |
parent | 5efc9f173f6905da39f3037c278e0e880e82ca35 (diff) | |
download | hercules-e7c2f7d827ad286dc826e483391e64b8ffe2720b.tar.gz hercules-e7c2f7d827ad286dc826e483391e64b8ffe2720b.tar.bz2 hercules-e7c2f7d827ad286dc826e483391e64b8ffe2720b.tar.xz hercules-e7c2f7d827ad286dc826e483391e64b8ffe2720b.zip |
Automatic HPM symbol sharing
Signed-off-by: Haru <haru@dotalux.com>
Diffstat (limited to 'src/login')
-rw-r--r-- | src/login/HPMlogin.c | 1 | ||||
-rw-r--r-- | src/login/login.c | 6 |
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); |