]> git.openstreetmap.org Git - nominatim.git/blob - nominatim/index.h
Merge pull request #345 from netsgnut/updated-tiger-mips
[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 {
9     pthread_t thread;
10     PGconn * conn;
11     PGresult * res;
12     int tuples;
13     int * count;
14     pthread_mutex_t * count_mutex;
15     xmlTextWriterPtr writer;
16     pthread_mutex_t * writer_mutex;
17 };
18 void nominatim_index(int rank_min, int rank_max, int num_threads, const char *conninfo, const char *structuredoutputfile);
19 void *nominatim_indexThread(void * thread_data_in);
20
21 #endif