/**
* This file is part of Hercules.
*
* Copyright (C) 2013-2015 Hercules Dev Team
*
* Hercules is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
/*
* NOTE: This file was auto-generated and should never be manually edited,
* as it will get overwritten.
*/
struct HookingPointData HookingPoints[] = {
/* HCache */
{ HP_POP(HCache->init, HP_HCache_init) },
{ HP_POP(HCache->check, HP_HCache_check) },
{ HP_POP(HCache->open, HP_HCache_open) },
/* cmdline */
{ HP_POP(cmdline->init, HP_cmdline_init) },
{ HP_POP(cmdline->final, HP_cmdline_final) },
{ HP_POP(cmdline->arg_add, HP_cmdline_arg_add) },
{ HP_POP(cmdline->exec, HP_cmdline_exec) },
{ HP_POP(cmdline->arg_next_value, HP_cmdline_arg_next_value) },
{ HP_POP(cmdline->arg_source, HP_cmdline_arg_source) },
/* console */
{ HP_POP(console->init, HP_console_init) },
{ HP_POP(console->final, HP_console_final) },
{ HP_POP(console->display_title, HP_console_display_title) },
{ HP_POP(console->display_gplnotice, HP_console_display_gplnotice) },
/* core */
{ HP_POP(core->shutdown_callback, HP_core_shutdown_callback) },
/* DB */
{ HP_POP(DB->fix_options, HP_DB_fix_options) },
{ HP_POP(DB->default_cmp, HP_DB_default_cmp) },
{ HP_POP(DB->default_hash, HP_DB_default_hash) },
{ HP_POP(DB->default_release, HP_DB_default_release) },
{ HP_POP(DB->custom_release, HP_DB_custom_release) },
{ HP_POP(DB->alloc, HP_DB_alloc) },
{ HP_POP(DB->i2key, HP_DB_i2key) },
{ HP_POP(DB->ui2key, HP_DB_ui2key) },
{ HP_POP(DB->str2key, HP_DB_str2key) },
{ HP_POP(DB->i642key, HP_DB_i642key) },
{ HP_POP(DB->ui642key, HP_DB_ui642key) },
{ HP_POP(DB->i2data, HP_DB_i2data) },
{ HP_POP(DB->ui2data, HP_DB_ui2data) },
{ HP_POP(DB->ptr2data, HP_DB_ptr2data) },
{ HP_POP(DB->data2i, HP_DB_data2i) },
{ HP_POP(DB->data2ui, HP_DB_data2ui) },
{ HP_POP(DB->data2ptr, HP_DB_data2ptr) },
{ HP_POP(DB->init, HP_DB_init) },
{ HP_POP(DB->final, HP_DB_final) },
/* libconfig */
{ HP_POP(libconfig->read, HP_libconfig_read) },
{ HP_POP(libconfig->write, HP_libconfig_write) },
{ HP_POP(libconfig->set_auto_convert, HP_libconfig_set_auto_convert) },
{ HP_POP(libconfig->get_auto_convert, HP_libconfig_get_auto_convert) },
{ HP_POP(libconfig->read_string, HP_libconfig_read_string) },
{ HP_POP(libconfig->read_file_src, HP_libconfig_read_file_src) },
{ HP_POP(libconfig->write_file, HP_libconfig_write_file) },
{ HP_POP(libconfig->set_destructor, HP_libconfig_set_destructor) },
{ HP_POP(libconfig->set_include_dir, HP_libconfig_set_include_dir) },
{ HP_POP(libconfig->init, HP_libconfig_init) },
{ HP_POP(libconfig->destroy, HP_libconfig_destroy) },
{ HP_POP(libconfig->setting_get_int, HP_libconfig_setting_get_int) },
{ HP_POP(libconfig->setting_get_int64, HP_libconfig_setting_get_int64) },
{ HP_POP(libconfig->setting_get_float, HP_libconfig_setting_get_float) },
{ HP_POP(libconfig->setting_get_bool, HP_libconfig_setting_get_bool) },
{ HP_POP(libconfig->setting_get_string, HP_libconfig_setting_get_string) },
{ HP_POP(libconfig->setting_lookup_int, HP_libconfig_setting_lookup_int) },
{ HP_POP(libconfig->setting_lookup_int64, HP_libconfig_setting_lookup_int64) },
{ HP_POP(libconfig->setting_lookup_float, HP_libconfig_setting_lookup_float) },
{ HP_POP(libconfig->setting_lookup_bool, HP_libconfig_setting_lookup_bool) },
{ HP_POP(libconfig->setting_lookup_string, HP_libconfig_setting_lookup_string) },
{ HP_POP(libconfig->setting_set_int, HP_libconfig_setting_set_int) },
{ HP_POP(libconfig->setting_set_int64, HP_libconfig_setting_set_int64) },
{ HP_POP(libconfig->setting_set_float, HP_libconfig_setting_set_float) },
{ HP_POP(libconfig->setting_set_bool, HP_libconfig_setting_set_bool) },
{ HP_POP(libconfig->setting_set_string, HP_libconfig_setting_set_string) },
{ HP_POP(libconfig->setting_set_format, HP_libconfig_setting_set_format) },
{ HP_POP(libconfig->setting_get_format, HP_libconfig_setting_get_format) },
{ HP_POP(libconfig->setting_get_int_elem, HP_libconfig_setting_get_int_elem) },
{ HP_POP(libconfig->setting_get_int64_elem, HP_libconfig_setting_get_int64_elem) },
{ HP_POP(libconfig->setting_get_float_elem, HP_libconfig_setting_get_float_elem) },
{ HP_POP(libconfig->setting_get_bool_elem, HP_libconfig_setting_get_bool_elem) },
{ HP_POP(libconfig->setting_get_string_elem, HP_libconfig_setting_get_string_elem) },
{ HP_POP(libconfig->setting_set_int_elem, HP_libconfig_setting_set_int_elem) },
{ HP_POP(libconfig->setting_set_int64_elem, HP_libconfig_setting_set_int64_elem) },
{ HP_POP(libconfig->setting_set_float_elem, HP_libconfig_setting_set_float_elem) },
{ HP_POP(libconfig->setting_set_bool_elem, HP_libconfig_setting_set_bool_elem) },
{ HP_POP(libconfig->setting_set_string_elem, HP_libconfig_setting_set_string_elem) },
{ HP_POP(libconfig->setting_index, HP_libconfig_setting_index) },
{ HP_POP(libconfig->setting_length, HP_libconfig_setting_length) },
{ HP_POP(libconfig->setting_get_elem, HP_libconfig_setting_get_elem) },
{ HP_POP(libconfig->setting_get_member, HP_libconfig_setting_get_member) },
{ HP_POP(libconfig->setting_add, HP_libconfig_setting_add) },
{ HP_POP(libconfig->setting_remove, HP_libconfig_setting_remove) },
{ HP_POP(libconfig->setting_remove_elem, HP_libconfig_setting_remove_elem) },
{ HP_POP(libconfig->setting_set_hook, HP_libconfig_setting_set_hook) },
{ HP_POP(libconfig->lookup, HP_libconfig_lookup) },
{ HP_POP(libconfig->lookup_from, HP_libconfig_lookup_from) },
{ HP_POP(libconfig->lookup_int, HP_libconfig_lookup_int) },
{ HP_POP(libconfig->lookup_int64, HP_libconfig_lookup_int64) },
{ HP_POP(libconfig->lookup_float, HP_libconfig_lookup_float) },
{ HP_POP(libconfig->lookup_bool, HP_libconfig_lookup_bool) },
{ HP_POP(libconfig->lookup_string, HP_libconfig_lookup_string) },
{ HP_POP(libconfig->read_file, HP_libconfig_read_file) },
{ HP_POP(libconfig->setting_copy_simple, HP_libconfig_setting_copy_simple) },
{ HP_POP(libconfig->setting_copy_elem, HP_libconfig_setting_copy_elem) },
{ HP_POP(libconfig->setting_copy_aggregate, HP_libconfig_setting_copy_aggregate) },
{ HP_POP(libconfig->setting_copy, HP_libconfig_setting_copy) },
/* login */
{ HP_POP(login->mmo_auth, HP_login_mmo_auth) },
{ HP_POP(login->mmo_auth_new, HP_login_mmo_auth_new) },
{ HP_POP(login->waiting_disconnect_timer, HP_login_waiting_disconnect_timer) },
{ HP_POP(login->create_online_user, HP_login_create_online_user) },
{ HP_POP(login->add_online_user, HP_login_add_online_user) },
{ HP_POP(login->remove_online_user, HP_login_remove_online_user) },
{ HP_POP(login->online_db_setoffline, HP_login_online_db_setoffline) },
{ HP_POP(login->online_data_cleanup_sub, HP_login_online_data_cleanup_sub) },
{ HP_POP(login->online_data_cleanup, HP_login_online_data_cleanup) },
{ HP_POP(login->sync_ip_addresses, HP_login_sync_ip_addresses) },
{ HP_POP(login->check_encrypted, HP_login_check_encrypted) },
{ HP_POP(login->check_password, HP_login_check_password) },
{ HP_POP(login->lan_subnet_check, HP_login_lan_subnet_check) },
{ HP_POP(login->fromchar_accinfo, HP_login_fromchar_accinfo) },
{ HP_POP(login->fromchar_account, HP_login_fromchar_account) },
{ HP_POP(login->fromchar_account_update_other, HP_login_fromchar_account_update_other) },
{ HP_POP(login->fromchar_auth_ack, HP_login_fromchar_auth_ack) },
{ HP_POP(login->fromchar_ban, HP_login_fromchar_ban) },
{ HP_POP(login->fromchar_change_sex_other, HP_login_fromchar_change_sex_other) },
{ HP_POP(login->fromchar_pong, HP_login_fromchar_pong) },
{ HP_POP(login->fromchar_parse_auth, HP_login_fromchar_parse_auth) },
{ HP_POP(login->fromchar_parse_update_users, HP_login_fromchar_parse_update_users) },
{ HP_POP(login->fromchar_parse_request_change_email, HP_login_fromchar_parse_request_change_email) },
{ HP_POP(login->fromchar_parse_account_data, HP_login_fromchar_parse_account_data) },
{ HP_POP(login->fromchar_parse_ping, HP_login_fromchar_parse_ping) },
{ HP_POP(login->fromchar_parse_change_email, HP_login_fromchar_parse_change_email) },
{ HP_POP(login->fromchar_parse_account_update, HP_login_fromchar_parse_account_update) },
{ HP_POP(login->fromchar_parse_ban, HP_login_fromchar_parse_ban) },
{ HP_POP(login->fromchar_parse_change_sex, HP_login_fromchar_parse_change_sex) },
{ HP_POP(login->fromchar_parse_account_reg2, HP_login_fromchar_parse_account_reg2) },
{ HP_POP(login->fromchar_parse_unban, HP_login_fromchar_parse_unban) },
{ HP_POP(login->fromchar_parse_account_online, HP_login_fromchar_parse_account_online) },
{ HP_POP(login->fromchar_parse_account_offline, HP_login_fromchar_parse_account_offline) },
{ HP_POP(login->fromchar_parse_online_accounts, HP_login_fromchar_parse_online_accounts) },
{ HP_POP(login->fromchar_parse_request_account_reg2, HP_login_fromchar_parse_request_account_reg2) },
{ HP_POP(login->fromchar_parse_update_wan_ip, HP_login_fromchar_parse_update_wan_ip) },
{ HP_POP(login->fromchar_parse_all_offline, HP_login_fromchar_parse_all_offline) },
{ HP_POP(login->fromchar_parse_change_pincode, HP_login_fromchar_parse_change_pincode) },
{ HP_POP(login->fromchar_parse_wrong_pincode, HP_login_fromchar_parse_wrong_pincode) },
{ HP_POP(login->fromchar_parse_accinfo, HP_login_fromchar_parse_accinfo) },
{ HP_POP(login->parse_fromchar, HP_login_parse_fromchar) },
{ HP_POP(login->connection_problem, HP_login_connection_problem) },
{ HP_POP(login->kick, HP_login_kick) },
{ HP_POP(login->auth_ok, HP_login_auth_ok) },
{ HP_POP(login->auth_failed, HP_login_auth_failed) },
{ HP_POP(login->login_error, HP_login_login_error) },
{ HP_POP(login->parse_ping, HP_login_parse_ping) },
{ HP_POP(login->parse_client_md5, HP_login_parse_client_md5) },
{ HP_POP(login->parse_client_login, HP_login_parse_client_login) },
{ HP_POP(login->send_coding_key, HP_login_send_coding_key) },
{ HP_POP(login->parse_request_coding_key, HP_login_parse_request_coding_key) },
{ HP_POP(login->char_server_connection_status, HP_login_char_server_connection_status) },
{ HP_POP(login->parse_request_connection, HP_login_parse_request_connection) },
{ HP_POP(login->parse_login, HP_login_parse_login) },
/* iMalloc */
{ HP_POP(iMalloc->init, HP_iMalloc_init) },
{ HP_POP(iMalloc->final, HP_iMalloc_final) },
{ HP_POP(iMalloc->malloc, HP_iMalloc_malloc) },
{ HP_POP(iMalloc->calloc, HP_iMalloc_calloc) },
{ HP_POP(iMalloc->realloc, HP_iMalloc_realloc) },
{ HP_POP(iMalloc->reallocz, HP_iMalloc_reallocz) },
{ HP_POP(iMalloc->astrdup, HP_iMalloc_astrdup) },
{ HP_POP(iMalloc->free, HP_iMalloc_free) },
{ HP_POP(iMalloc->memory_check, HP_iMalloc_memory_check) },
{ HP_POP(iMalloc->verify_ptr, HP_iMalloc_verify_ptr) },
{ HP_POP(iMalloc->usage, HP_iMalloc_usage) },
{ HP_POP(iMalloc->post_shutdown, HP_iMalloc_post_shutdown) },
{ HP_POP(iMalloc->init_messages, HP_iMalloc_init_messages) },
/* nullpo */
{ HP_POP(nullpo->assert_report, HP_nullpo_assert_report) },
/* showmsg */
{ HP_POP(showmsg->init, HP_showmsg_init) },
{ HP_POP(showmsg->final, HP_showmsg_final) },
{ HP_POP(showmsg->clearScreen, HP_showmsg_clearScreen) },
{ HP_POP(showmsg->showMessageV, HP_showmsg_showMessageV) },
/* sockt */
{ HP_POP(sockt->init, HP_sockt_init) },
{ HP_POP(sockt->final, HP_sockt_final) },
{ HP_POP(sockt->perform, HP_sockt_perform) },
{ HP_POP(sockt->datasync, HP_sockt_datasync) },
{ HP_POP(sockt->make_listen_bind, HP_sockt_make_listen_bind) },
{ HP_POP(sockt->make_connection, HP_sockt_make_connection) },
{ HP_POP(sockt->realloc_fifo, HP_sockt_realloc_fifo) },
{ HP_POP(sockt->realloc_writefifo, HP_sockt_realloc_writefifo) },
{ HP_POP(sockt->wfifoset, HP_sockt_wfifoset) },
{ HP_POP(sockt->rfifoskip, HP_sockt_rfifoskip) },
{ HP_POP(sockt->close, HP_sockt_close) },
{ HP_POP(sockt->session_is_valid, HP_sockt_session_is_valid) },
{ HP_POP(sockt->session_is_active, HP_sockt_session_is_active) },
{ HP_POP(sockt->flush, HP_sockt_flush) },
{ HP_POP(sockt->flush_fifos, HP_sockt_flush_fifos) },
{ HP_POP(sockt->set_nonblocking, HP_sockt_set_nonblocking) },
{ HP_POP(sockt->set_defaultparse, HP_sockt_set_defaultparse) },
{ HP_POP(sockt->host2ip, HP_sockt_host2ip) },
{ HP_POP(sockt->ip2str, HP_sockt_ip2str) },
{ HP_POP(sockt->str2ip, HP_sockt_str2ip) },
{ HP_POP(sockt->ntows, HP_sockt_ntows) },
{ HP_POP(sockt->getips, HP_sockt_getips) },
{ HP_POP(sockt->eof, HP_sockt_eof) },
{ HP_POP(sockt->lan_subnet_check, HP_sockt_lan_subnet_check) },
{ HP_POP(sockt->allowed_ip_check, HP_sockt_allowed_ip_check) },
{ HP_POP(sockt->trusted_ip_check, HP_sockt_trusted_ip_check) },
{ HP_POP(sockt->net_config_read_sub, HP_sockt_net_config_read_sub) },
{ HP_POP(sockt->net_config_read, HP_sockt_net_config_read) },
/* SQL */
{ HP_POP(SQL->Connect, HP_SQL_Connect) },
{ HP_POP(SQL->GetTimeout, HP_SQL_GetTimeout) },
{ HP_POP(SQL->GetColumnNames, HP_SQL_GetColumnNames) },
{ HP_POP(SQL->SetEncoding, HP_SQL_SetEncoding) },
{ HP_POP(SQL->Ping, HP_SQL_Ping) },
{ HP_POP(SQL->EscapeString, HP_SQL_EscapeString) },
{ HP_POP(SQL->EscapeStringLen, HP_SQL_EscapeStringLen) },
{ HP_POP(SQL->QueryV, HP_SQL_QueryV) },
{ HP_POP(SQL->QueryStr, HP_SQL_QueryStr) },
{ HP_POP(SQL->LastInsertId, HP_SQL_LastInsertId) },
{ HP_POP(SQL->NumColumns, HP_SQL_NumColumns) },
{ HP_POP(SQL->NumRows, HP_SQL_NumRows) },
{ HP_POP(SQL->NextRow, HP_SQL_NextRow) },
{ HP_POP(SQL->GetData, HP_SQL_GetData) },
{ HP_POP(SQL->FreeResult, HP_SQL_FreeResult) },
{ HP_POP(SQL->ShowDebug_, HP_SQL_ShowDebug_) },
{ HP_POP(SQL->Free, HP_SQL_Free) },
{ HP_POP(SQL->Malloc, HP_SQL_Malloc) },
{ HP_POP(SQL->StmtMalloc, HP_SQL_StmtMalloc) },
{ HP_POP(SQL->StmtPrepareV, HP_SQL_StmtPrepareV) },
{ HP_POP(SQL->StmtPrepareStr, HP_SQL_StmtPrepareStr) },
{ HP_POP(SQL->StmtNumParams, HP_SQL_StmtNumParams) },
{ HP_POP(SQL->StmtBindParam, HP_SQL_StmtBindParam) },
{ HP_POP(SQL->StmtExecute, HP_SQL_StmtExecute) },
{ HP_POP(SQL->StmtLastInsertId, HP_SQL_StmtLastInsertId) },
{ HP_POP(SQL->StmtNumColumns, HP_SQL_StmtNumColumns) },
{ HP_POP(SQL->StmtBindColumn, HP_SQL_StmtBindColumn) },
{ HP_POP(SQL->StmtNumRows, HP_SQL_StmtNumRows) },
{ HP_POP(SQL->StmtNextRow, HP_SQL_StmtNextRow) },
{ HP_POP(SQL->StmtFreeResult, HP_SQL_StmtFreeResult) },
{ HP_POP(SQL->StmtFree, HP_SQL_StmtFree) },
{ HP_POP(SQL->StmtShowDebug_, HP_SQL_StmtShowDebug_) },
/* StrBuf */
{ HP_POP(StrBuf->Malloc, HP_StrBuf_Malloc) },
{ HP_POP(StrBuf->Init, HP_StrBuf_Init) },
{ HP_POP(StrBuf->Vprintf, HP_StrBuf_Vprintf) },
{ HP_POP(StrBuf->Append, HP_StrBuf_Append) },
{ HP_POP(StrBuf->AppendStr, HP_StrBuf_AppendStr) },
{ HP_POP(StrBuf->Length, HP_StrBuf_Length) },
{ HP_POP(StrBuf->Value, HP_StrBuf_Value) },
{ HP_POP(StrBuf->Clear, HP_StrBuf_Clear) },
{ HP_POP(StrBuf->Destroy, HP_StrBuf_Destroy) },
{ HP_POP(StrBuf->Free, HP_StrBuf_Free) },
/* strlib */
{ HP_POP(strlib->jstrescape, HP_strlib_jstrescape) },
{ HP_POP(strlib->jstrescapecpy, HP_strlib_jstrescapecpy) },
{ HP_POP(strlib->jmemescapecpy, HP_strlib_jmemescapecpy) },
{ HP_POP(strlib->remove_control_chars_, HP_strlib_remove_control_chars_) },
{ HP_POP(strlib->trim_, HP_strlib_trim_) },
{ HP_POP(strlib->normalize_name_, HP_strlib_normalize_name_) },
{ HP_POP(strlib->stristr_, HP_strlib_stristr_) },
{ HP_POP(strlib->strnlen_, HP_strlib_strnlen_) },
{ HP_POP(strlib->strtok_r_, HP_strlib_strtok_r_) },
{ HP_POP(strlib->e_mail_check_, HP_strlib_e_mail_check_) },
{ HP_POP(strlib->config_switch_, HP_strlib_config_switch_) },
{ HP_POP(strlib->safestrncpy_, HP_strlib_safestrncpy_) },
{ HP_POP(strlib->safestrnlen_, HP_strlib_safestrnlen_) },
{ HP_POP(strlib->strline_, HP_strlib_strline_) },
{ HP_POP(strlib->bin2hex_, HP_strlib_bin2hex_) },
/* sv */
{ HP_POP(sv->parse_next, HP_sv_parse_next) },
{ HP_POP(sv->parse, HP_sv_parse) },
{ HP_POP(sv->split, HP_sv_split) },
{ HP_POP(sv->escape_c, HP_sv_escape_c) },
{ HP_POP(sv->unescape_c, HP_sv_unescape_c) },
{ HP_POP(sv->skip_escaped_c, HP_sv_skip_escaped_c) },
{ HP_POP(sv->readdb, HP_sv_readdb) },
/* sysinfo */
{ HP_POP(sysinfo->getpagesize, HP_sysinfo_getpagesize) },
{ HP_POP(sysinfo->platform, HP_sysinfo_platform) },
{ HP_POP(sysinfo->osversion, HP_sysinfo_osversion) },
{ HP_POP(sysinfo->cpu, HP_sysinfo_cpu) },
{ HP_POP(sysinfo->cpucores, HP_sysinfo_cpucores) },
{ HP_POP(sysinfo->arch, HP_sysinfo_arch) },
{ HP_POP(sysinfo->is64bit, HP_sysinfo_is64bit) },
{ HP_POP(sysinfo->compiler, HP_sysinfo_compiler) },
{ HP_POP(sysinfo->cflags, HP_sysinfo_cflags) },
{ HP_POP(sysinfo->vcstype, HP_sysinfo_vcstype) },
{ HP_POP(sysinfo->vcstypeid, HP_sysinfo_vcstypeid) },
{ HP_POP(sysinfo->vcsrevision_src, HP_sysinfo_vcsrevision_src) },
{ HP_POP(sysinfo->vcsrevision_scripts, HP_sysinfo_vcsrevision_scripts) },
{ HP_POP(sysinfo->vcsrevision_reload, HP_sysinfo_vcsrevision_reload) },
{ HP_POP(sysinfo->is_superuser, HP_sysinfo_is_superuser) },
{ HP_POP(sysinfo->init, HP_sysinfo_init) },
{ HP_POP(sysinfo->final, HP_sysinfo_final) },
/* timer */
{ HP_POP(timer->gettick, HP_timer_gettick) },
{ HP_POP(timer->gettick_nocache, HP_timer_gettick_nocache) },
{ HP_POP(timer->add, HP_timer_add) },
{ HP_POP(timer->add_interval, HP_timer_add_interval) },
{ HP_POP(timer->get, HP_timer_get) },
{ HP_POP(timer->delete, HP_timer_delete) },
{ HP_POP(timer->addtick, HP_timer_addtick) },
{ HP_POP(timer->settick, HP_timer_settick) },
{ HP_POP(timer->add_func_list, HP_timer_add_func_list) },
{ HP_POP(timer->get_uptime, HP_timer_get_uptime) },
{ HP_POP(timer->perform, HP_timer_perform) },
{ HP_POP(timer->init, HP_timer_init) },
{ HP_POP(timer->final, HP_timer_final) },
};
int HookingPointsLenMax = 42;