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