bfile_heuristics.h

changeset 34
fa9bda32de17
parent 27
95a958e3de88
equal deleted inserted replaced
33:1a2d7298bc82 34:fa9bda32de17
1 /*
2 * bfile_heuristics.h
3 *
4 * Created on: 20.10.2011
5 * Author: Mike
6 */
7
8 #ifndef BFILE_HEURISTICS_H_
9 #define BFILE_HEURISTICS_H_
10
11 #include "stdinc.h"
12
13 #define BFILE_IGNORE 0x00
14 #define BFILE_LOW_ACCURACY 0x01
15 #define BFILE_MEDIUM_ACCURACY 0x02
16 #define BFILE_HIGH_ACCURACY 0x04
17
18 typedef struct {
19 unsigned int level;
20 unsigned int bcount; /* 'binary' character count */
21 unsigned int tcount; /* total count */
22 } bfile_heuristics_t;
23
24 #ifdef _cplusplus
25 extern "C" {
26 #endif
27
28 bfile_heuristics_t *new_bfile_heuristics_t();
29 void destroy_bfile_heuristics_t(bfile_heuristics_t *def);
30 void bfile_reset(bfile_heuristics_t *def);
31 bool bfile_check(bfile_heuristics_t *def, int next_char);
32
33 #ifdef _cplusplus
34 }
35 #endif
36
37 #endif /* BFILE_HEURISTICS_H_ */

mercurial