Implemented ILL protocol. Minor updates ASN.1 compiler.
[yaz-moved-to-github.git] / ill / ill.tcl
1 # Config File for ILL
2 # $Id: ill.tcl,v 1.1 1999-12-16 23:36:19 adam Exp $
3 # ----------------------------------------------------------
4 # Prefix Specifications
5 #  
6 #    1: C function prefix
7 #    2: C type prefix
8 #    3: C preprocessor prefix
9
10 # Default prefix
11 set default-prefix {ill_ ILL_ ILL_}
12
13 # ----------------------------------------------------------
14 set m ISO-10161-ILL-1
15
16 # Filename
17 set filename($m) ill-core
18
19 # Header initialization code
20 set init($m,h) "
21 "
22
23 # Header body code
24 set body($m,h) "
25 #ifdef __cplusplus
26 extern \"C\" \{
27 #endif
28
29 #ifdef __cplusplus
30 \}
31 #endif
32 "
33
34 # C body code
35 set body($m,c) "
36 "
37
38 # Some mappings - that map ill_ILL_<name> to ill_<name>
39 set map($m,ILL-APDU) APDU
40 set map($m,ILL-Request) Request
41 set map($m,ILL-Answer) Answer
42 set map($m,ILL-String) String
43 set map($m,ILL-APDU-Type) APDU_Type
44 set map($m,ILL-Service-Type) Service_Type
45
46 # ----------------------------------------------------------
47 set m Z39.50-extendedService-ItemOrder-ItemRequest-1
48 # Filename
49 set filename($m) item-req
50
51 # Mappings of a few basic types
52 proc asnBasicPrintableString {} {
53     return {odr_visiblestring char}
54 }
55
56 proc asnBasicANY {} {
57     return {odr_any Odr_any}
58 }