Implemented Sort.
[idzebra-moved-to-github.git] / include / zebramap.h
1 /*
2  * Copyright (C) 1994-1998, Index Data I/S 
3  * All rights reserved.
4  * Sebastian Hammer, Adam Dickmeiss
5  *
6  * $Log: zebramap.h,v $
7  * Revision 1.4  1998-02-10 12:03:05  adam
8  * Implemented Sort.
9  *
10  * Revision 1.3  1997/11/18 10:05:08  adam
11  * Changed character map facility so that admin can specify character
12  * mapping files for each register type, w, p, etc.
13  *
14  * Revision 1.2  1997/10/29 12:02:47  adam
15  * Added missing prototype.
16  *
17  * Revision 1.1  1997/10/27 14:33:04  adam
18  * Moved towards generic character mapping depending on "structure"
19  * field in abstract syntax file. Fixed a few memory leaks. Fixed
20  * bug with negative integers when doing searches with relational
21  * operators.
22  *
23  */
24
25 #ifndef ZEBRAMAP_H
26 #define ZEBRAMAP_H
27
28 #include <proto.h>
29 #include <res.h>
30
31 #ifdef __cplusplus
32 extern "C" {
33 #endif
34
35 typedef struct zebra_maps *ZebraMaps;
36 ZebraMaps zebra_maps_open (const char *tabpath, Res res);
37
38 void zebra_maps_close (ZebraMaps zm);
39
40 const char **zebra_maps_input (ZebraMaps zms, int reg_type,
41                                const char **from, int len);
42 const char *zebra_maps_output(ZebraMaps, int reg_type, const char **from);
43
44 int zebra_maps_attr (ZebraMaps zms, Z_AttributesPlusTerm *zapt,
45                      int *reg_type, char **search_type, int *complete_flag);
46
47 int zebra_maps_sort (ZebraMaps zms, Z_SortAttributes *sortAttributes);
48
49 int zebra_maps_is_complete (ZebraMaps zms, int structure);
50 int zebra_maps_is_sort (ZebraMaps zms, int reg_type);
51 #ifdef __cplusplus
52 }
53 #endif
54
55 #endif