/** * @defgroup common 公用函数 * @defgroup workflow 流程函数 * @defgroup bmf 业务扩展 * @defgroup service 服务函数 */ /** * @addtogroup common * @{ */ /** * @file * @brief 注册主函数 * @date 2014/4/21 * @author mengyawei */ #pragma warning (disable: 4819) /** * @headerfile tcua 头文件 */ #include #include #include #include "epm_register_handler.h" #include "epm_handler_common.h" #include "jd_clear_field.h" #include "ict/ict_userservice.h" #ifdef __cplusplus extern "C" { #endif DLLAPI int jd_change_unit_register_callbacks() { char* log_file = NULL; printf("创建日志文件\n"); char* TO_SRM = (char*)malloc(sizeof("Main")); strcpy(TO_SRM, "Main"); int ifail = ITK_ok; ITKCALL(ifail = CUSTOM_register_exit("jd_change_unit", "USER_gs_shell_init_module", (CUSTOM_EXIT_ftn_t)CUST_init_module)); if (ifail != ITK_ok) { TC_write_syslog("注册jd_change_unit回调失败[CUST_init_module]\n"); }else { TC_write_syslog("注册jd_change_unit回调成功[CUST_init_module]\n"); } fprintf(stdout, "\n bssss registering USERSERVICE_custom_register_handlers completed!\n"); return ifail; } #ifdef __cplusplus } #endif