acl/samples/master/master_notify/service_var.h
zsxxsz cc05b877a2 first commit acl to github
first commit acl to github
2013-08-18 17:42:25 +08:00

53 lines
1.3 KiB
C

#ifndef __SERVICE_VAR_INCLUDE_H__
#define __SERVICE_VAR_INCLUDE_H__
#include "lib_acl.h"
/*------------- 字符串配置项 ----------------*/
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;
/*-------------- 布尔值配置项 ---------------*/
extern ACL_CFG_BOOL_TABLE var_conf_bool_tab[];
/* 是否输出日志调试信息 */
extern int var_cfg_debug_enable;
/* 是否与客户端保持长连接 */
extern int var_cfg_keep_alive;
/*-------------- 整数配置项 -----------------*/
extern ACL_CFG_INT_TABLE var_conf_int_tab[];
/* 每次与客户端通信时,读超时时间(秒) */
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;
/*----------------- 非配置项的全局变量 ------*/
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