universe@20: /* universe@20: * bfile_heuristics.h universe@20: * universe@20: * Created on: 20.10.2011 universe@20: * Author: Mike universe@20: */ universe@20: universe@20: #ifndef BFILE_HEURISTICS_H_ universe@20: #define BFILE_HEURISTICS_H_ universe@20: universe@20: #include "stdinc.h" universe@21: universe@21: #define BFILE_IGNORE 0x00 universe@21: #define BFILE_LOW_ACCURACY 0x01 universe@21: #define BFILE_MEDIUM_ACCURACY 0x02 universe@21: #define BFILE_HIGH_ACCURACY 0x04 universe@21: universe@21: typedef struct { universe@27: unsigned int level; universe@27: unsigned int bcount; /* 'binary' character count */ universe@27: unsigned int tcount; /* total count */ universe@21: } bfile_heuristics_t; universe@20: universe@20: #ifdef _cplusplus universe@20: extern "C" { universe@20: #endif universe@20: universe@21: bfile_heuristics_t *new_bfile_heuristics_t(); universe@21: void destroy_bfile_heuristics_t(bfile_heuristics_t *def); universe@22: void bfile_reset(bfile_heuristics_t *def); universe@21: bool bfile_check(bfile_heuristics_t *def, int next_char); universe@20: universe@20: #ifdef _cplusplus universe@20: } universe@20: #endif universe@20: universe@21: #endif /* BFILE_HEURISTICS_H_ */