bfile_heuristics.h

Thu, 20 Oct 2011 15:21:53 +0200

author
Mike Becker <universe@uap-core.de>
date
Thu, 20 Oct 2011 15:21:53 +0200
changeset 21
91e0890464b0
parent 20
43725438ac50
child 22
4508da679ffb
permissions
-rw-r--r--

implemented bfile heuristics option + TODO: implement algorithm

universe@20 1 /*
universe@20 2 * bfile_heuristics.h
universe@20 3 *
universe@20 4 * Created on: 20.10.2011
universe@20 5 * Author: Mike
universe@20 6 */
universe@20 7
universe@20 8 #ifndef BFILE_HEURISTICS_H_
universe@20 9 #define BFILE_HEURISTICS_H_
universe@20 10
universe@20 11 #include "stdinc.h"
universe@21 12
universe@21 13 #define BFILE_IGNORE 0x00
universe@21 14 #define BFILE_LOW_ACCURACY 0x01
universe@21 15 #define BFILE_MEDIUM_ACCURACY 0x02
universe@21 16 #define BFILE_HIGH_ACCURACY 0x04
universe@21 17
universe@21 18 typedef struct {
universe@21 19 int level;
universe@21 20 int *ccount;
universe@21 21 } bfile_heuristics_t;
universe@20 22
universe@20 23 #ifdef _cplusplus
universe@20 24 extern "C" {
universe@20 25 #endif
universe@20 26
universe@21 27 bfile_heuristics_t *new_bfile_heuristics_t();
universe@21 28 void destroy_bfile_heuristics_t(bfile_heuristics_t *def);
universe@21 29 bool bfile_check(bfile_heuristics_t *def, int next_char);
universe@20 30
universe@20 31 #ifdef _cplusplus
universe@20 32 }
universe@20 33 #endif
universe@20 34
universe@21 35 #endif /* BFILE_HEURISTICS_H_ */

mercurial