23#ifndef OLAF_FP_MATCHER_H
24#define OLAF_FP_MATCHER_H
42 typedef void (*
Olaf_FP_Matcher_Result_Callback)(
int matchCount,
float queryStart,
float queryStop,
const char* path, uint32_t matchIdentifier,
float referenceStart,
float referenceStop);
Olaf configuration pramameters.
Olaf fingerprint database.
void olaf_fp_matcher_print_results(Olaf_FP_Matcher *olaf_fp_matcher)
Print the current results.
Definition olaf_fp_matcher.c:273
void olaf_fp_matcher_match(Olaf_FP_Matcher *olaf_fp_matcher, struct extracted_fingerprints *olaf_fps)
Match fingerprints with the database.
Definition olaf_fp_matcher.c:225
void olaf_fp_matcher_print_header(Olaf_FP_Matcher *fp_matcher)
Print a header for the CSV output.
Definition olaf_fp_matcher.c:221
void(* Olaf_FP_Matcher_Result_Callback)(int matchCount, float queryStart, float queryStop, const char *path, uint32_t matchIdentifier, float referenceStart, float referenceStop)
Callback function template to respond to a result.
Definition olaf_fp_matcher.h:42
void olaf_fp_matcher_callback_print_result(int matchCount, float queryStart, float queryStop, const char *path, uint32_t matchIdentifier, float referenceStart, float referenceStop)
Prints a match result using the specified format.
Definition olaf_fp_matcher.c:267
Olaf_FP_Matcher * olaf_fp_matcher_new(Olaf_Config *config, Olaf_DB *db, Olaf_FP_Matcher_Result_Callback callback)
Initialize a new matcher.
Definition olaf_fp_matcher.c:102
void olaf_fp_matcher_destroy(Olaf_FP_Matcher *olaf_fp_matcher)
Free used memory and resources, does not close the database resources!
Definition olaf_fp_matcher.c:343
void olaf_fp_matcher_set_header(Olaf_FP_Matcher *fp_matcher, const char *header)
Set the result header for the matcher.
Definition olaf_fp_matcher.c:217
Configuration parameters defining the behaviour of Olaf.
Definition olaf_config.h:51
A struct with state information on the data store.
Definition olaf_db.c:27
A matcher matches extracted fingerprints with a database. A struct to keep the internal state of the ...
Definition olaf_fp_matcher.c:48
const char * header
Definition olaf_fp_matcher.c:60
Olaf_DB * db
Definition olaf_fp_matcher.c:52
Olaf_Config * config
Definition olaf_fp_matcher.c:54