This commit is contained in:
Nikolaj
2021-09-27 12:36:29 +02:00
parent 4e879f3163
commit 7f22e73b91
11 changed files with 569 additions and 0 deletions

16
A1/coord_query.h Normal file
View File

@@ -0,0 +1,16 @@
// Similar to id_query.h. See the comments there.
#ifndef COORD_QUERY_LOOP_H
#define COORD_QUERY_LOOP_H
#include "record.h"
typedef void* (*mk_index_fn)(const struct record*, int);
typedef void (*free_index_fn)(void*);
typedef const struct record* (*lookup_fn)(void*, double, double);
int coord_query_loop(int argc, char** argv, mk_index_fn, free_index_fn, lookup_fn);
#endif