view src/indexer/indexer-client.h @ 22325:e01bc3015b2f

lib-index: Check .log.2 rotation only when syncing Instead of also whenever appending transactions to .log file. This shouldn't change the behavior much, and it's needed for the following change to work correctly.
author Timo Sirainen <timo.sirainen@dovecot.fi>
date Tue, 11 Jul 2017 15:33:56 +0300
parents af8c5e56d098
children
line wrap: on
line source

#ifndef INDEXER_CLIENT_H
#define INDEXER_CLIENT_H

struct indexer_queue;

struct indexer_client *
indexer_client_create(int fd, struct indexer_queue *queue);
void indexer_client_status_callback(int percentage, void *context);

unsigned int indexer_clients_get_count(void);
void indexer_clients_destroy_all(void);

#endif