Nominatim/nominatim/index.h

22 lines
500 B
C
Raw Normal View History

2010-10-24 03:12:37 +04:00
#ifndef INDEX_H
#define INDEX_H
#include <libxml/encoding.h>
#include <libxml/xmlwriter.h>
2010-12-10 19:13:07 +03:00
struct index_thread_data
{
pthread_t thread;
PGconn * conn;
PGresult * res;
int tuples;
int * count;
pthread_mutex_t * count_mutex;
xmlTextWriterPtr writer;
pthread_mutex_t * writer_mutex;
2010-10-24 03:12:37 +04:00
};
void nominatim_index(int rank_min, int rank_max, int num_threads, const char *conninfo, const char *structuredoutputfile);
void *nominatim_indexThread(void * thread_data_in);
#endif