diff src/lib-storage/index/index-sort.h @ 761:d3bd41a56309 HEAD

First implementation of SORT extension. String comparing still not up to spec, so we don't advertise it in capability string yet. The code supports getting the data partially pre-sorted to reduce memory usage and make it faster. So, in future we could use this by creating sorted binary trees. Also moved mail-storage-register.c into it's own .a lib to fix circular dependencies.
author Timo Sirainen <tss@iki.fi>
date Wed, 04 Dec 2002 20:28:37 +0200
parents
children f57c52738f90
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/src/lib-storage/index/index-sort.h	Wed Dec 04 20:28:37 2002 +0200
@@ -0,0 +1,19 @@
+#ifndef __INDEX_SORT_H
+#define __INDEX_SORT_H
+
+#include "mail-storage.h"
+#include "mail-sort.h"
+
+typedef struct {
+	IndexMailbox *ibox;
+	OBuffer *outbuf;
+
+	unsigned int last_uid;
+	MailIndexRecord *rec;
+
+	unsigned int cached:1;
+} IndexSortContext;
+
+extern MailSortFuncs index_sort_funcs;
+
+#endif