bfile_heuristics.h

Tue, 02 Oct 2012 10:49:25 +0200

author
Mike Becker <universe@uap-core.de>
date
Tue, 02 Oct 2012 10:49:25 +0200
changeset 33
1a2d7298bc82
parent 27
95a958e3de88
permissions
-rw-r--r--

added multi-directory support

fixed parser bug in directory parser locking argument number 1024

fixed freed memory access on settings structure

/*
 * bfile_heuristics.h
 *
 *  Created on: 20.10.2011
 *      Author: Mike
 */

#ifndef BFILE_HEURISTICS_H_
#define BFILE_HEURISTICS_H_

#include "stdinc.h"

#define BFILE_IGNORE           0x00
#define BFILE_LOW_ACCURACY     0x01
#define BFILE_MEDIUM_ACCURACY  0x02
#define BFILE_HIGH_ACCURACY    0x04

typedef struct {
  unsigned int level;
  unsigned int bcount; /* 'binary' character count */
  unsigned int tcount; /* total count */
} bfile_heuristics_t;

#ifdef _cplusplus
extern "C" {
#endif

bfile_heuristics_t *new_bfile_heuristics_t();
void destroy_bfile_heuristics_t(bfile_heuristics_t *def);
void bfile_reset(bfile_heuristics_t *def);
bool bfile_check(bfile_heuristics_t *def, int next_char);

#ifdef _cplusplus
}
#endif

#endif /* BFILE_HEURISTICS_H_ */

mercurial