You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

68 lines
1.2 KiB

/**
* @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 <tc/tc.h>
#include <tccore/custom.h>
#include <server_exits/user_server_exits.h>
#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