Thu, 01 Dec 2011 17:06:27 +0100
Merge with 3963e8800a1268be93d938c709e2d4be4d0b2d39
/* * bfile_heuristics.h * * Created on: 20.10.2011 * Author: Mike */ #ifndef BFILE_HEURISTICS_H_ #define BFILE_HEURISTICS_H_ #include "stdinc.h" #define BFILE_IGNORE 0x00 #define BFILE_LOW_ACCURACY 0x01 #define BFILE_MEDIUM_ACCURACY 0x02 #define BFILE_HIGH_ACCURACY 0x04 typedef struct { int level; int bcount; /* 'binary' character count */ int tcount; /* total count */ } bfile_heuristics_t; #ifdef _cplusplus extern "C" { #endif bfile_heuristics_t *new_bfile_heuristics_t(); void destroy_bfile_heuristics_t(bfile_heuristics_t *def); void bfile_reset(bfile_heuristics_t *def); bool bfile_check(bfile_heuristics_t *def, int next_char); #ifdef _cplusplus } #endif #endif /* BFILE_HEURISTICS_H_ */