2 Star 1 Fork 0

长江/oscam

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
oscam-emm-cache.h 1.06 KB
一键复制 编辑 原始数据 按行查看 历史
theparasol 提交于 2015-02-09 01:16 . EMM:
#ifndef OSCAM_EMM_CACHE_H_
#define OSCAM_EMM_CACHE_H_
void emm_save_cache(void);
void load_emmstat_from_file(void);
void save_emmstat_to_file(void);
void emm_load_cache(void);
// all these functions below use emms md5 hash as indexkey
struct s_emmcache *find_emm_cache(uchar *emmd5); // find a certain emm, e.g. to resend it to reader, returns null if nothing found
int32_t emm_edit_cache(uchar *emmd5, EMM_PACKET *ep, bool add); // add = false: delete a certain emm from cache add = true: update lastseen or add emm to cache
struct s_emmstat *get_emm_stat(struct s_reader *rdr, uchar *emmd5, uchar emmtype); // find a certain emmstat
int32_t remove_emm_stat(struct s_reader *rdr, uchar *emmd5); // remove a certain emmstat
int32_t clean_stale_emm_cache_and_stat(uchar *emmd5, int64_t gone); // remove stale global emmcache + emmstat where emm lastseen is older than gone ms
#else
static inline void load_emmstat_from_file(void) { }
static inline void save_emmstat_to_file(void) { }
static inline void emm_load_cache(void) { }
static inline void emm_save_cache(void) { }
#endif
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C
1
https://gitee.com/4a02/oscam.git
git@gitee.com:4a02/oscam.git
4a02
oscam
oscam
master

搜索帮助