No "copy" of source for thread/malloc libraries.
[yaz-moved-to-github.git] / z39.50 / esadmin.asn
1 ESFormat-Admin
2 {Z39-50-extendedService Index-Data(81) AdminES (1)} DEFINITIONS ::=
3   -- oid is 1.2.840.10003.9.81.1
4 BEGIN
5 IMPORTS DiagRec, InternationalString, Segment
6 FROM Z39-50-APDU-1995;
7 Admin ::= CHOICE{
8     esRequest      [1] IMPLICIT SEQUENCE{
9        toKeep         [1] OriginPartToKeep,
10        notToKeep      [2] OriginPartNotToKeep},
11     taskPackage    [2] IMPLICIT SEQUENCE{
12                        originPart     [1]
13                                    OriginPartToKeep,
14                        targetPart     [2] TargetPart}}
15
16 OriginPartToKeep ::= SEQUENCE{
17 action              [1] CHOICE{
18     reIndex         [1] NULL,
19     truncate        [2] NULL,
20     drop            [3] NULL,
21     create          [4] NULL,
22     import          [5] ImportParameters,
23     refresh         [6] NULL,   -- Review internal representation of records against source files on disk to
24                                 -- see if they have been updated.
25     commit          [7] NULL,
26     shutdown        [8] NULL,
27     start           [9] NULL},
28 databaseName           [2] IMPLICIT InternationalString OPTIONAL}
29
30 OriginPartNotToKeep ::= CHOICE{
31 records                 [1] Segment,
32 recordsWillFollow       [0] NULL}
33
34 TargetPart ::= SEQUENCE{
35   updateStatus        [1] IMPLICIT INTEGER{
36                           success (1),
37                           partial (2),
38                           failure (3)},
39   globalDiagnostics   [2] IMPLICIT SEQUENCE OF
40                               DiagRec OPTIONAL
41                }
42                
43 -- Auxiliary definitions for Admin
44
45 ImportParameters ::= SEQUENCE{
46  recordType          [1] IMPLICIT InternationalString
47 }
48
49 END