Ai
2 Star 1 Fork 0

长江/oscam-nx111

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
module-anticasc.h 1.25 KB
一键复制 编辑 原始数据 按行查看 历史
gf 提交于 2015-01-22 19:49 +08:00 . log: Move anticasc logging code into module-anticasc.c
#ifndef MODULE_ANTICASC_H_
#define MODULE_ANTICASC_H_
#ifdef CS_ANTICASC
extern void ac_init(void);
extern void ac_init_stat(void);
extern void ac_do_stat(void);
extern void ac_clear(void);
extern void ac_copy_vars(struct s_auth *src, struct s_auth *dst);
extern void ac_init_client(struct s_client *cl, struct s_auth *account);
extern void ac_chk(struct s_client *cl, ECM_REQUEST *er, int32_t level);
extern void insert_zaplist(ECM_REQUEST *er, struct s_client *client);
static inline bool acosc_enabled(void) { return cfg.acosc_enabled; }
extern bool anticasc_logging(char *txt);
#else
static inline void ac_init(void) { }
static inline void ac_init_stat(void) { }
static inline void ac_do_stat(void) { }
static inline void ac_clear(void) { }
static inline void ac_copy_vars(struct s_auth *UNUSED(src), struct s_auth *UNUSED(dst)) { }
static inline void ac_init_client(struct s_client *UNUSED(cl), struct s_auth *UNUSED(account)) { }
static inline void ac_chk(struct s_client *UNUSED(cl), ECM_REQUEST *UNUSED(er), int32_t UNUSED(level)) { }
static inline void insert_zaplist(ECM_REQUEST *UNUSED(er), struct s_client *UNUSED(client)) { }
static inline bool acosc_enabled(void) { return 0; }
static inline bool anticasc_logging(char *UNUSED(txt)) { return 0; }
#endif
#endif
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/4a02/oscam-nx111.git
git@gitee.com:4a02/oscam-nx111.git
4a02
oscam-nx111
oscam-nx111
master

搜索帮助