bfile_heuristics.h

Thu, 20 Oct 2011 17:29:23 +0200

author
Mike Becker <universe@uap-core.de>
date
Thu, 20 Oct 2011 17:29:23 +0200
changeset 22
4508da679ffb
parent 21
91e0890464b0
child 27
95a958e3de88
permissions
-rw-r--r--

completed binary file heuristics

     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   int level;
    20   int bcount; /* 'binary' character count */
    21   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_ */

mercurial