indexer-queue.h revision d9e404180ff26dbbaea68534a5f176765022b76b
#ifndef INDEXER_QUEUE_H
#define INDEXER_QUEUE_H
#include "indexer.h"
struct indexer_request {
char *username;
char *mailbox;
void **contexts;
};
/* The callback is called whenever a new request is added to the queue. */
void (*callback)(struct indexer_queue *));
void *context);
/* Return the next request from the queue, without removing it. */
/* Remove the next request from the queue. You must call
indexer_queue_request_finish() to free its memory. */
/* Give a status update about how far the indexing is going on. */
struct indexer_request *request,
int percentage);
/* Finish the request and free its memory. */
struct indexer_request **request,
bool success);
#endif