indexer_queue_init(indexer_queue_callback_t *callback)
{
struct indexer_queue *queue;
-
+
queue = i_new(struct indexer_queue, 1);
queue->callback = callback;
hash_table_create(&queue->requests, default_pool, 0,
/* The callback is called whenever a new request is added to the queue. */
void indexer_queue_set_listen_callback(struct indexer_queue *queue,
void (*callback)(struct indexer_queue *));
-
+
void indexer_queue_append(struct indexer_queue *queue, bool append,
const char *username, const char *mailbox,
const char *session_id, unsigned int max_recent_msgs,