bdfb4778f34dd5d583be7109532394ee140e4265
[idzebra-moved-to-github.git] / include / sortidx.h
1 /*
2  * Copyright (C) 1994-1998, Index Data ApS
3  * All rights reserved.
4  * Sebastian Hammer, Adam Dickmeiss
5  *
6  * $Log: sortidx.h,v $
7  * Revision 1.2  1998-06-25 09:55:49  adam
8  * Minor changes - fixex headers.
9  *
10  * Revision 1.1  1998/02/10 12:03:05  adam
11  * Implemented Sort.
12  *
13  */
14
15 #ifndef SORTIDX_H
16 #define SORTIDX_H
17
18 #include <bfile.h>
19
20 #ifdef __cplusplus
21 extern "C" {
22 #endif
23
24 #define SORT_IDX_ENTRYSIZE 64
25
26 typedef struct sortIdx *SortIdx;
27
28 SortIdx sortIdx_open (BFiles bfs, int write_flag);
29 void sortIdx_close (SortIdx si);
30 int sortIdx_type (SortIdx si, int type);
31 void sortIdx_sysno (SortIdx si, int sysno);
32 void sortIdx_add (SortIdx si, const char *buf, int len);
33 void sortIdx_read (SortIdx si, char *buf);
34
35 #ifdef __cplusplus
36 }
37 #endif
38
39 #endif