ocarina/include/filter.h
Anna Schumaker 2b15048777 filter: Implement text filtering
Because every programming project needs a test case centered around
Discworld quotes ...

Signed-off-by: Anna Schumaker <schumaker.anna@gmail.com>
2014-04-06 19:56:53 -04:00

24 lines
390 B
C++

/*
* Copyright 2013 (c) Anna Schumaker.
*/
#ifndef OCARINA_FILTER_H
#define OCARINA_FILTER_H
#include <index.h>
#include <string>
namespace filter {
void add(const std::string &, unsigned int);
void search(const std::string &, std::set<unsigned int> &);
void print_cache_stats();
#ifdef CONFIG_TEST
Index &get_index();
#endif /* CONFIG_TEST */
};
#endif /* OCARINA_FILTER_H */