]> git.openstreetmap.org Git - nominatim.git/blob - nominatim/index.h
images and javascript
[nominatim.git] / nominatim / index.h
1 #ifndef INDEX_H
2 #define INDEX_H
3
4 #include <libxml/encoding.h>
5 #include <libxml/xmlwriter.h>
6
7 struct index_thread_data{
8    pthread_t thread;
9    PGconn * conn;
10    PGresult * res;
11    int tuples;
12    int * count;
13    pthread_mutex_t * count_mutex;
14    xmlTextWriterPtr writer;
15    pthread_mutex_t * writer_mutex;
16 };
17 void nominatim_index(int rank_min, int rank_max, int num_threads, const char *conninfo, const char *structuredoutputfile);
18 void *nominatim_indexThread(void * thread_data_in);
19
20 #endif