2019-07-27 22:44:32 +08:00
|
|
|
|
#ifndef __SERVICE_VAR_INCLUDE_H__
|
2014-11-19 00:25:21 +08:00
|
|
|
|
#define __SERVICE_VAR_INCLUDE_H__
|
|
|
|
|
|
|
|
|
|
#include "lib_acl.h"
|
|
|
|
|
|
2019-07-27 22:44:32 +08:00
|
|
|
|
/*------------- 字符串配置项 ----------------*/
|
2014-11-19 00:25:21 +08:00
|
|
|
|
|
|
|
|
|
extern ACL_CFG_STR_TABLE var_conf_str_tab[];
|
|
|
|
|
|
|
|
|
|
extern char *var_cfg_debug_msg;
|
|
|
|
|
extern char *var_cfg_smtpd_addr;
|
|
|
|
|
extern char *var_cfg_mail_from;
|
|
|
|
|
extern char *var_cfg_mail_to;
|
|
|
|
|
extern char *var_cfg_auth_user;
|
|
|
|
|
extern char *var_cfg_auth_pass;
|
|
|
|
|
extern char *var_cfg_warn_mail;
|
|
|
|
|
extern char *var_cfg_smtp_helo;
|
|
|
|
|
extern char *var_cfg_sms_addr;
|
|
|
|
|
extern char *var_cfg_host_ip;
|
|
|
|
|
|
2019-07-27 22:44:32 +08:00
|
|
|
|
/*-------------- 布尔值配置项 ---------------*/
|
2014-11-19 00:25:21 +08:00
|
|
|
|
|
|
|
|
|
extern ACL_CFG_BOOL_TABLE var_conf_bool_tab[];
|
|
|
|
|
|
2019-07-27 22:44:32 +08:00
|
|
|
|
/* 是否输出日志调试信息 */
|
2014-11-19 00:25:21 +08:00
|
|
|
|
extern int var_cfg_debug_enable;
|
|
|
|
|
|
2019-07-27 22:44:32 +08:00
|
|
|
|
/* 是否与客户端保持长连接 */
|
2014-11-19 00:25:21 +08:00
|
|
|
|
extern int var_cfg_keep_alive;
|
|
|
|
|
|
2019-07-27 22:44:32 +08:00
|
|
|
|
/*-------------- 整数配置项 -----------------*/
|
2014-11-19 00:25:21 +08:00
|
|
|
|
|
|
|
|
|
extern ACL_CFG_INT_TABLE var_conf_int_tab[];
|
|
|
|
|
|
2019-07-27 22:44:32 +08:00
|
|
|
|
/* 每次与客户端通信时,读超时时间(秒) */
|
2014-11-19 00:25:21 +08:00
|
|
|
|
extern int var_cfg_io_timeout;
|
|
|
|
|
extern int var_cfg_smtp_notify_cache_timeout;
|
|
|
|
|
extern int var_cfg_sms_notify_cache_timeout;
|
|
|
|
|
extern int var_cfg_work_week_min;
|
|
|
|
|
extern int var_cfg_work_week_max;
|
|
|
|
|
extern int var_cfg_work_hour_min;
|
|
|
|
|
extern int var_cfg_work_hour_max;
|
|
|
|
|
|
2019-07-27 22:44:32 +08:00
|
|
|
|
/*----------------- 非配置项的全局变量 ------*/
|
2014-11-19 00:25:21 +08:00
|
|
|
|
extern ACL_ARGV *var_recipients;
|
|
|
|
|
extern ACL_ARGV *var_ccs;
|
|
|
|
|
extern ACL_ARGV *var_bccs;
|
|
|
|
|
|
|
|
|
|
void service_var_init(void);
|
|
|
|
|
void service_var_end(void);
|
|
|
|
|
|
|
|
|
|
#endif
|