bfile_heuristics.h

changeset 22
4508da679ffb
parent 21
91e0890464b0
child 27
95a958e3de88
equal deleted inserted replaced
21:91e0890464b0 22:4508da679ffb
15 #define BFILE_MEDIUM_ACCURACY 0x02 15 #define BFILE_MEDIUM_ACCURACY 0x02
16 #define BFILE_HIGH_ACCURACY 0x04 16 #define BFILE_HIGH_ACCURACY 0x04
17 17
18 typedef struct { 18 typedef struct {
19 int level; 19 int level;
20 int *ccount; 20 int bcount; /* 'binary' character count */
21 int tcount; /* total count */
21 } bfile_heuristics_t; 22 } bfile_heuristics_t;
22 23
23 #ifdef _cplusplus 24 #ifdef _cplusplus
24 extern "C" { 25 extern "C" {
25 #endif 26 #endif
26 27
27 bfile_heuristics_t *new_bfile_heuristics_t(); 28 bfile_heuristics_t *new_bfile_heuristics_t();
28 void destroy_bfile_heuristics_t(bfile_heuristics_t *def); 29 void destroy_bfile_heuristics_t(bfile_heuristics_t *def);
30 void bfile_reset(bfile_heuristics_t *def);
29 bool bfile_check(bfile_heuristics_t *def, int next_char); 31 bool bfile_check(bfile_heuristics_t *def, int next_char);
30 32
31 #ifdef _cplusplus 33 #ifdef _cplusplus
32 } 34 }
33 #endif 35 #endif

mercurial