]> git.openstreetmap.org Git - nominatim.git/blob - nominatim/index.h
Merge pull request #948 from mtmail/phpcs-enable-3-spacing-rules
[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     unsigned table;
18 };
19 void nominatim_index(int rank_min, int rank_max, int num_threads, const char *conninfo, const char *structuredoutputfile);
20 void *nominatim_indexThread(void * thread_data_in);
21
22 #endif