Olaf
Overly Lightweight Acoustic Fingerprinting
Loading...
Searching...
No Matches
Data Structures | Macros | Typedefs | Functions
olaf_runner.h File Reference

Helps to run query, store, delete or print commands. These share a lot of functionality but differ in crucial parts. To keep this organized the runner keeps some shared state. More...

#include "olaf_config.h"
#include "olaf_db.h"
#include "pffft.h"

Go to the source code of this file.

Data Structures

struct  Olaf_Runner
 Helps to run query, store, delete or print commands. These share a lot of functionality but differ in crucial parts. To keep this organized the runner keeps some shared state. More...
 

Macros

#define OLAF_RUNNER_MODE_QUERY   233
 
#define OLAF_RUNNER_MODE_STORE   434
 
#define OLAF_RUNNER_MODE_DELETE   653
 
#define OLAF_RUNNER_MODE_PRINT   9043
 

Typedefs

typedef struct Olaf_Runner Olaf_Runner
 

Functions

Olaf_Runnerolaf_runner_new (int mode)
 Create a new runner.
 
void olaf_runner_destroy (Olaf_Runner *runner)
 Delete the resources related to the runner.
 

Detailed Description

Helps to run query, store, delete or print commands. These share a lot of functionality but differ in crucial parts. To keep this organized the runner keeps some shared state.

Function Documentation

◆ olaf_runner_destroy()

void olaf_runner_destroy ( Olaf_Runner runner)

Delete the resources related to the runner.

Parameters
runnerThe runner state to clear.

◆ olaf_runner_new()

Olaf_Runner * olaf_runner_new ( int  mode)

Create a new runner.

Parameters
[in]modeThe mode
Returns
The state of the runner