25#ifndef OLAF_FP_DB_WRITER_CACHE_H
26#define OLAF_FP_DB_WRITER_CACHE_H
34 #define MAX_LINE_LEN 2048
35 #define MAX_TOKEN_LEN 512
36 #define FP_ARRAY_SIZE 10000
Olaf configuration pramameters.
Olaf fingerprint database.
void olaf_fp_db_writer_cache_store(Olaf_FP_DB_Writer_Cache *olaf_fp_db_writer_cache)
Read the csv file and store the fingerpints within the file. Or an error if the CSV is malformed.
Definition: olaf_fp_db_writer_cache.c:133
void olaf_fp_db_writer_cache_destroy(Olaf_FP_DB_Writer_Cache *olaf_fp_db_writer_cache)
Free resources and close the CSV file.
Definition: olaf_fp_db_writer_cache.c:153
Olaf_FP_DB_Writer_Cache * olaf_fp_db_writer_cache_new(Olaf_DB *db, Olaf_Config *config, const char *csv_filename)
Initializes a new cache db writer.
Definition: olaf_fp_db_writer_cache.c:116
Configuration parameters defining the behaviour of Olaf.
Definition: olaf_config.h:48
A struct with state information on the data store.
Definition: olaf_db.c:27
An opaque struct with state information related to the cache writer.
Definition: olaf_fp_db_writer_cache.c:26