Thu, 09 Feb 2012 15:56:18 +0100
allow parallel use of -s and -S
1 /*
2 * bfile_heuristics.h
3 *
4 * Created on: 20.10.2011
5 * Author: Mike
6 */
8 #ifndef BFILE_HEURISTICS_H_
9 #define BFILE_HEURISTICS_H_
11 #include "stdinc.h"
13 #define BFILE_IGNORE 0x00
14 #define BFILE_LOW_ACCURACY 0x01
15 #define BFILE_MEDIUM_ACCURACY 0x02
16 #define BFILE_HIGH_ACCURACY 0x04
18 typedef struct {
19 unsigned int level;
20 unsigned int bcount; /* 'binary' character count */
21 unsigned int tcount; /* total count */
22 } bfile_heuristics_t;
24 #ifdef _cplusplus
25 extern "C" {
26 #endif
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);
33 #ifdef _cplusplus
34 }
35 #endif
37 #endif /* BFILE_HEURISTICS_H_ */