2 * Copyright (c) 1995, Index Data.
4 * Permission to use, copy, modify, distribute, and sell this software and
5 * its documentation, in whole or in part, for any purpose, is hereby granted,
8 * 1. This copyright and permission notice appear in all copies of the
9 * software and its documentation. Notices of copyright or attribution
10 * which appear at the beginning of any file must remain unchanged.
12 * 2. The name of Index Data or the individual authors may not be used to
13 * endorse or promote products derived from this software without specific
14 * prior written permission.
16 * THIS SOFTWARE IS PROVIDED "AS IS" AND WITHOUT WARRANTY OF ANY KIND,
17 * EXPRESS, IMPLIED, OR OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY
18 * WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.
19 * IN NO EVENT SHALL INDEX DATA BE LIABLE FOR ANY SPECIAL, INCIDENTAL,
20 * INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY KIND, OR ANY DAMAGES
21 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER OR
22 * NOT ADVISED OF THE POSSIBILITY OF DAMAGE, AND ON ANY THEORY OF
23 * LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE
27 * Revision 1.22 1995-08-17 12:45:14 quinn
28 * Fixed minor problems with GRS-1. Added support in c&s.
30 * Revision 1.21 1995/08/15 12:00:11 quinn
33 * Revision 1.20 1995/08/10 08:54:35 quinn
36 * Revision 1.19 1995/06/19 12:38:28 quinn
37 * Reorganized include-files. Added small features.
39 * Revision 1.18 1995/06/16 13:16:05 quinn
40 * Fixed Defaultdiagformat.
42 * Revision 1.17 1995/06/15 15:42:05 quinn
45 * Revision 1.16 1995/06/15 07:45:06 quinn
48 * Revision 1.15 1995/06/14 15:26:43 quinn
49 * *** empty log message ***
51 * Revision 1.14 1995/06/07 14:42:34 quinn
54 * Revision 1.13 1995/06/07 14:36:47 quinn
57 * Revision 1.12 1995/06/05 10:53:13 quinn
60 * Revision 1.11 1995/06/02 09:49:47 quinn
63 * Revision 1.10 1995/05/29 08:11:34 quinn
64 * Moved oid from odr/asn to util.
66 * Revision 1.9 1995/05/22 11:31:25 quinn
69 * Revision 1.8 1995/05/17 08:41:35 quinn
70 * Added delete to proto & other little things.
71 * Relaying auth info to backend.
73 * Revision 1.7 1995/05/16 08:50:37 quinn
74 * License, documentation, and memory fixes
76 * Revision 1.6 1995/05/15 11:55:55 quinn
77 * Work on asynchronous activity.
79 * Revision 1.5 1995/04/17 11:28:18 quinn
82 * Revision 1.4 1995/04/10 10:22:47 quinn
85 * Revision 1.3 1995/03/30 12:18:09 quinn
88 * Revision 1.2 1995/03/30 10:26:48 quinn
89 * Added Term structure
91 * Revision 1.1 1995/03/30 09:39:42 quinn
92 * Moved .h files to include directory
94 * Revision 1.11 1995/03/30 09:08:44 quinn
95 * Added Resource control protocol
97 * Revision 1.10 1995/03/29 15:39:39 quinn
98 * Adding some resource control elements, and a null-check to getentbyoid
100 * Revision 1.9 1995/03/29 08:06:18 quinn
101 * Added a few v3 elements
103 * Revision 1.8 1995/03/22 10:12:49 quinn
104 * Added Z_PRES constants.
106 * Revision 1.7 1995/03/20 09:45:12 quinn
109 * Revision 1.5 1995/03/07 16:29:34 quinn
110 * Added authentication stuff.
112 * Revision 1.4 1995/03/07 10:13:00 quinn
113 * Added prototype for z_APDU()
115 * Revision 1.3 1995/02/14 11:54:23 quinn
118 * Revision 1.2 1995/02/09 15:51:40 quinn
121 * Revision 1.1 1995/02/06 16:44:48 quinn
122 * First hack at Z/SR protocol
132 #include <yaz-version.h>
135 * Because we didn't have time to put all of the extra v3 elements in here
136 * before the first applications were written, we have to place them
137 * in #ifdefs in places where they would break existing code. If you are
138 * developing new stuff, we urge you to leave them in, even if you don't
139 * intend to use any v3 features. When we are comfortable that the old
140 * apps have been updated, we'll remove the #ifdefs.
145 /* ----------------- GLOBAL AUXILIARY DEFS ----------------*/
148 typedef struct Z_External Z_External;
150 typedef Odr_oct Z_ReferenceId;
151 typedef char Z_DatabaseName;
152 typedef char Z_ResultSetId;
153 typedef Odr_oct Z_ResultsetId;
155 typedef struct Z_InfoCategory
157 Odr_oid *categoryTypeId; /* OPTIONAL */
161 typedef struct Z_OtherInformationUnit
163 Z_InfoCategory *category; /* OPTIONAL */
166 Z_OtherInfo_characterInfo,
167 Z_OtherInfo_binaryInfo,
168 Z_OtherInfo_externallyDefinedInfo,
175 Z_External *externallyDefinedInfo;
178 } Z_OtherInformationUnit;
180 typedef struct Z_OtherInformation
183 Z_OtherInformationUnit **list;
184 } Z_OtherInformation;
186 typedef struct Z_StringOrNumeric
190 Z_StringOrNumeric_string,
191 Z_StringOrNumeric_numeric
200 typedef struct Z_Unit
202 char *unitSystem; /* OPTIONAL */
203 Z_StringOrNumeric *unitType; /* OPTIONAL */
204 Z_StringOrNumeric *unit; /* OPTIONAL */
205 int *scaleFactor; /* OPTIONAL */
208 typedef struct Z_IntUnit
214 typedef Odr_oct Z_SUTRS;
216 /* ----------------- INIT SERVICE ----------------*/
220 char *groupId; /* OPTIONAL */
221 char *userId; /* OPTIONAL */
222 char *password; /* OPTIONAL */
225 typedef struct Z_IdAuthentication
229 Z_IdAuthentication_open,
230 Z_IdAuthentication_idPass,
231 Z_IdAuthentication_anonymous,
232 Z_IdAuthentication_other
241 } Z_IdAuthentication;
243 #define Z_ProtocolVersion_1 0
244 #define Z_ProtocolVersion_2 1
245 #define Z_ProtocolVersion_3 2
247 #define Z_Options_search 0
248 #define Z_Options_present 1
249 #define Z_Options_delSet 2
250 #define Z_Options_resourceReport 3
251 #define Z_Options_triggerResourceCtrl 4
252 #define Z_Options_resourceCtrl 5
253 #define Z_Options_accessCtrl 6
254 #define Z_Options_scan 7
255 #define Z_Options_sort 8
256 #define Z_Options_reserved 9
257 #define Z_Options_extendedServices 10
258 #define Z_Options_level_1Segmentation 11
259 #define Z_Options_level_2Segmentation 12
260 #define Z_Options_concurrentOperations 13
261 #define Z_Options_namedResultSets 14
263 typedef struct Z_InitRequest
265 Z_ReferenceId *referenceId; /* OPTIONAL */
266 Odr_bitmask *protocolVersion;
267 Odr_bitmask *options;
268 int *preferredMessageSize;
269 int *maximumRecordSize;
270 Z_IdAuthentication* idAuthentication; /* OPTIONAL */
271 char *implementationId; /* OPTIONAL */
272 char *implementationName; /* OPTIONAL */
273 char *implementationVersion; /* OPTIONAL */
274 Z_External *userInformationField; /* OPTIONAL */
276 Z_OtherInformation *otherInfo; /* OPTIONAL */
280 typedef struct Z_InitResponse
282 Z_ReferenceId *referenceId; /* OPTIONAL */
283 Odr_bitmask *protocolVersion;
284 Odr_bitmask *options;
285 int *preferredMessageSize;
286 int *maximumRecordSize;
288 char *implementationId; /* OPTIONAL */
289 char *implementationName; /* OPTIONAL */
290 char *implementationVersion; /* OPTIONAL */
291 Z_External *userInformationField; /* OPTIONAL */
293 Z_OtherInformation *otherInfo; /* OPTIONAL */
297 typedef struct Z_NSRAuthentication
302 } Z_NSRAuthentication;
304 int z_NSRAuthentication(ODR o, Z_NSRAuthentication **p, int opt);
306 int z_StrAuthentication(ODR o, char **p, int opt);
308 /* ------------------ SEARCH SERVICE ----------------*/
310 typedef struct Z_DatabaseSpecificUnit
313 char *elementSetName;
314 } Z_DatabaseSpecificUnit;
316 typedef struct Z_DatabaseSpecific
319 Z_DatabaseSpecificUnit **elements;
320 } Z_DatabaseSpecific;
322 typedef struct Z_ElementSetNames
325 #define Z_ElementSetNames_generic 0
326 #define Z_ElementSetNames_databaseSpecific 1
330 Z_DatabaseSpecific *databaseSpecific;
334 /* ---------------------- RPN QUERY --------------------------- */
336 typedef struct Z_ComplexAttribute
339 Z_StringOrNumeric **list;
340 int num_semanticAction;
341 int **semanticAction; /* OPTIONAL */
342 } Z_ComplexAttribute;
344 typedef struct Z_AttributeElement
347 Odr_oid *attributeSet; /* OPTIONAL - v3 only */
353 Z_AttributeValue_numeric,
354 Z_AttributeValue_complex
359 Z_ComplexAttribute *complex;
364 } Z_AttributeElement;
366 typedef struct Z_Term
372 Z_Term_characterString,
376 Z_Term_integerAndUnit,
381 Odr_oct *general; /* this is required for v2 */
383 char *characterString;
386 Z_External *external;
387 /* Z_IntUnit *integerAndUnit; */
392 typedef struct Z_AttributesPlusTerm
395 Z_AttributeElement **attributeList;
397 } Z_AttributesPlusTerm;
399 typedef struct Z_ResultSetPlusAttributes
403 Z_AttributeElement **attributeList;
404 } Z_ResultSetPlusAttributes;
406 typedef struct Z_ProximityOperator
408 bool_t *exclusion; /* OPTIONAL */
412 #define Z_Prox_lessThan 1
413 #define Z_Prox_lessThanOrEqual 2
414 #define Z_Prox_equal 3
415 #define Z_Prox_greaterThanOrEqual 4
416 #define Z_Prox_greaterThan 5
417 #define Z_Prox_notEqual 6
423 int *proximityUnitCode;
424 #define Z_ProxUnit_character 1
425 #define Z_ProxUnit_word 2
426 #define Z_ProxUnit_sentence 3
427 #define Z_ProxUnit_paragraph 4
428 #define Z_ProxUnit_section 5
429 #define Z_ProxUnit_chapter 6
430 #define Z_ProxUnit_document 7
431 #define Z_ProxUnit_element 8
432 #define Z_ProxUnit_subelement 9
433 #define Z_ProxUnit_elementType 10
434 #define Z_ProxUnit_byte 11 /* v3 only */
435 } Z_ProximityOperator;
437 typedef struct Z_Operator
448 Odr_null *and; /* these guys are nulls. */
451 Z_ProximityOperator *prox;
455 typedef struct Z_Operand
460 Z_Operand_resultSetId,
461 Z_Operand_resultAttr /* v3 only */
465 Z_AttributesPlusTerm *attributesPlusTerm;
466 Z_ResultSetId *resultSetId;
467 Z_ResultSetPlusAttributes *resultAttr;
471 typedef struct Z_Complex
473 struct Z_RPNStructure *s1;
474 struct Z_RPNStructure *s2;
475 Z_Operator *operator;
478 typedef struct Z_RPNStructure
482 Z_RPNStructure_simple,
483 Z_RPNStructure_complex
492 typedef struct Z_RPNQuery
494 Odr_oid *attributeSetId;
495 Z_RPNStructure *RPNStructure;
498 /* -------------------------- SEARCHREQUEST -------------------------- */
500 typedef struct Z_Query
513 Z_RPNQuery *type_101;
517 typedef struct Z_SearchRequest
519 Z_ReferenceId *referenceId; /* OPTIONAL */
520 int *smallSetUpperBound;
521 int *largeSetLowerBound;
522 int *mediumSetPresentNumber;
523 bool_t *replaceIndicator;
525 int num_databaseNames;
526 char **databaseNames;
527 Z_ElementSetNames *smallSetElementSetNames; /* OPTIONAL */
528 Z_ElementSetNames *mediumSetElementSetNames; /* OPTIONAL */
529 Odr_oid *preferredRecordSyntax; /* OPTIONAL */
532 Z_OtherInformation *additionalSearchInfo; /* OPTIONAL */
533 Z_OtherInformation *otherInfo; /* OPTIONAL */
537 /* ------------------------ RECORD -------------------------- */
539 typedef Z_External Z_DatabaseRecord;
543 typedef struct Z_DefaultDiagFormat
545 Odr_oid *diagnosticSetId; /* This is opt'l to interwork with bad targets */
547 /* until the whole character set issue becomes more definite,
548 * you can probably ignore this on input. */
551 Z_DiagForm_v2AddInfo,
555 } Z_DefaultDiagFormat;
557 typedef struct Z_DiagRec
561 Z_DiagRec_defaultFormat,
562 Z_DiagRec_externallyDefined
566 Z_DefaultDiagFormat *defaultFormat;
567 Z_External *externallyDefined;
573 typedef struct Z_DiagRec
575 Odr_oid *diagnosticSetId; /* This is opt'l to interwork with bad targets */
582 typedef struct Z_DiagRecs
585 Z_DiagRec **diagRecs;
588 typedef struct Z_NamePlusRecord
590 char *databaseName; /* OPTIONAL */
593 Z_NamePlusRecord_databaseRecord,
594 Z_NamePlusRecord_surrogateDiagnostic
599 Z_DatabaseRecord *databaseRecord;
600 Z_DiagRec *surrogateDiagnostic;
604 typedef struct Z_NamePlusRecordList
607 Z_NamePlusRecord **records;
608 } Z_NamePlusRecordList;
610 typedef struct Z_Records
616 Z_Records_multipleNSD
620 Z_NamePlusRecordList *databaseOrSurDiagnostics;
621 Z_DiagRec *nonSurrogateDiagnostic;
622 Z_DiagRecs *multipleNonSurDiagnostics;
626 /* ------------------------ SEARCHRESPONSE ------------------ */
628 typedef struct Z_SearchResponse
630 Z_ReferenceId *referenceId; /* OPTIONAL */
632 int *numberOfRecordsReturned;
633 int *nextResultSetPosition;
634 bool_t *searchStatus;
635 int *resultSetStatus; /* OPTIONAL */
636 #define Z_RES_SUBSET 1
637 #define Z_RES_INTERIM 2
639 int *presentStatus; /* OPTIONAL */
640 #define Z_PRES_SUCCESS 0
641 #define Z_PRES_PARTIAL_1 1
642 #define Z_PRES_PARTIAL_2 2
643 #define Z_PRES_PARTIAL_3 3
644 #define Z_PRES_PARTIAL_4 4
645 #define Z_PRES_FAILURE 5
646 Z_Records *records; /* OPTIONAL */
648 Z_OtherInformation *additionalSearchInfo;
649 Z_OtherInformation *otherInfo;
653 /* ------------------------- PRESENT SERVICE -----------------*/
655 typedef struct Z_ElementSpec
659 Z_ElementSpec_elementSetName,
660 Z_ElementSpec_externalSpec
664 char *elementSetName;
665 Z_External *externalSpec;
669 typedef struct Z_Specification
671 Odr_oid *schema; /* OPTIONAL */
672 Z_ElementSpec *elementSpec; /* OPTIONAL */
675 typedef struct Z_DbSpecific
678 Z_Specification *spec;
681 typedef struct Z_CompSpec
683 bool_t *selectAlternativeSyntax;
684 Z_Specification *generic; /* OPTIONAL */
686 Z_DbSpecific **dbSpecific; /* OPTIONAL */
687 int num_recordSyntax;
688 Odr_oid **recordSyntax; /* OPTIONAL */
691 typedef struct Z_RecordComposition
700 Z_ElementSetNames *simple;
703 } Z_RecordComposition;
705 typedef struct Z_Range
707 int *startingPosition;
708 int *numberOfRecords;
711 typedef struct Z_PresentRequest
713 Z_ReferenceId *referenceId; /* OPTIONAL */
714 Z_ResultSetId *resultSetId;
715 int *resultSetStartPoint;
716 int *numberOfRecordsRequested;
719 Z_Range **additionalRanges; /* OPTIONAL */
720 Z_RecordComposition *recordComposition; /* OPTIONAL */
722 Z_ElementSetNames *elementSetNames; /* OPTIONAL */
724 Odr_oid *preferredRecordSyntax; /* OPTIONAL */
726 int *maxSegmentCount; /* OPTIONAL */
727 int *maxRecordSize; /* OPTIONAL */
728 int *maxSegmentSize; /* OPTIONAL */
729 Z_OtherInformation *otherInfo; /* OPTIONAL */
733 typedef struct Z_PresentResponse
735 Z_ReferenceId *referenceId; /* OPTIONAL */
736 int *numberOfRecordsReturned;
737 int *nextResultSetPosition;
741 Z_OtherInformation *otherInfo; /* OPTIONAL */
745 /* ------------------ RESOURCE CONTROL ----------------*/
747 typedef struct Z_TriggerResourceControlRequest
749 Z_ReferenceId *referenceId; /* OPTIONAL */
750 int *requestedAction;
751 #define Z_TriggerResourceCtrl_resourceReport 1
752 #define Z_TriggerResourceCtrl_resourceControl 2
753 #define Z_TriggerResourceCtrl_cancel 3
754 Odr_oid *prefResourceReportFormat; /* OPTIONAL */
755 bool_t *resultSetWanted; /* OPTIONAL */
757 Z_OtherInformation *otherInfo;
759 } Z_TriggerResourceControlRequest;
761 typedef struct Z_ResourceControlRequest
763 Z_ReferenceId *referenceId; /* OPTIONAL */
764 bool_t *suspendedFlag; /* OPTIONAL */
765 Z_External *resourceReport; /* OPTIONAL */
766 int *partialResultsAvailable; /* OPTIONAL */
767 #define Z_ResourceControlRequest_subset 1
768 #define Z_ResourceControlRequest_interim 2
769 #define Z_ResourceControlRequest_none 3
770 bool_t *responseRequired;
771 bool_t *triggeredRequestFlag; /* OPTIONAL */
773 Z_OtherInformation *otherInfo;
775 } Z_ResourceControlRequest;
777 typedef struct Z_ResourceControlResponse
779 Z_ReferenceId *referenceId; /* OPTIONAL */
780 bool_t *continueFlag;
781 bool_t *resultSetWanted; /* OPTIONAL */
783 Z_OtherInformation *otherInfo;
785 } Z_ResourceControlResponse;
788 /* ------------------ ACCESS CTRL SERVICE ----------------*/
790 typedef struct Z_AccessControlRequest
792 Z_ReferenceId *referenceId; /* OPTIONAL */
795 Z_AccessRequest_simpleForm,
796 Z_AccessRequest_externallyDefined
801 Z_External *externallyDefined;
804 Z_OtherInformation *otherInfo; /* OPTIONAL */
806 } Z_AccessControlRequest;
808 typedef struct Z_AccessControlResponse
810 Z_ReferenceId *referenceId; /* OPTIONAL */
813 Z_AccessResponse_simpleForm,
814 Z_AccessResponse_externallyDefined
819 Z_External *externallyDefined;
821 Z_DiagRec *diagnostic; /* OPTIONAL */
823 Z_OtherInformation *otherInfo; /* OPTIONAL */
825 } Z_AccessControlResponse;
827 /* ------------------------ SCAN SERVICE -------------------- */
829 typedef struct Z_AttributeList
832 Z_AttributeElement **attributes;
835 typedef struct Z_AlternativeTerm
838 Z_AttributesPlusTerm **terms;
841 typedef struct Z_OccurrenceByAttributes
843 Z_AttributeList *attributes;
855 /* Z_ByDatabase *byDatabase; */
858 } Z_OccurrenceByAttributes;
860 typedef struct Z_TermInfo
863 Z_AttributeList *suggestedAttributes; /* OPTIONAL */
864 Z_AlternativeTerm *alternativeTerm; /* OPTIONAL */
865 int *globalOccurrences; /* OPTIONAL */
866 Z_OccurrenceByAttributes *byAttributes; /* OPTIONAL */
869 typedef struct Z_Entry
874 Z_Entry_surrogateDiagnostic
878 Z_TermInfo *termInfo;
879 Z_DiagRec *surrogateDiagnostic;
883 typedef struct Z_Entries
889 typedef struct Z_ListEntries
893 Z_ListEntries_entries,
894 Z_ListEntries_nonSurrogateDiagnostics
899 Z_DiagRecs *nonSurrogateDiagnostics;
903 typedef struct Z_ScanRequest
905 Z_ReferenceId *referenceId; /* OPTIONAL */
906 int num_databaseNames;
907 char **databaseNames;
908 Odr_oid *attributeSet; /* OPTIONAL */
909 Z_AttributesPlusTerm *termListAndStartPoint;
910 int *stepSize; /* OPTIONAL */
911 int *numberOfTermsRequested;
912 int *preferredPositionInResponse; /* OPTIONAL */
914 Z_OtherInformation *otherInfo;
918 typedef struct Z_ScanResponse
920 Z_ReferenceId *referenceId; /* OPTIONAL */
921 int *stepSize; /* OPTIONAL */
923 #define Z_Scan_success 0
924 #define Z_Scan_partial_1 1
925 #define Z_Scan_partial_2 2
926 #define Z_Scan_partial_3 3
927 #define Z_Scan_partial_4 4
928 #define Z_Scan_partial_5 5
929 #define Z_Scan_failure 6
930 int *numberOfEntriesReturned;
931 int *positionOfTerm; /* OPTIONAL */
932 Z_ListEntries *entries; /* OPTIONAL */
933 Odr_oid *attributeSet; /* OPTIONAL */
935 Z_OtherInformation *otherInfo;
940 /* ------------------------ DELETE -------------------------- */
942 #define Z_DeleteStatus_success 0
943 #define Z_DeleteStatus_resultSetDidNotExist 1
944 #define Z_DeleteStatus_previouslyDeletedByTarget 2
945 #define Z_DeleteStatus_systemProblemAtTarget 3
946 #define Z_DeleteStatus_accessNotAllowed 4
947 #define Z_DeleteStatus_resourceControlAtOrigin 5
948 #define Z_DeleteStatus_resourceControlAtTarget 6
949 #define Z_DeleteStatus_bulkDeleteNotSupported 7
950 #define Z_DeleteStatus_notAllRsltSetsDeletedOnBulkDlte 8
951 #define Z_DeleteStatus_notAllRequestedResultSetsDeleted 9
952 #define Z_DeleteStatus_resultSetInUse 10
954 typedef struct Z_ListStatus
960 typedef struct Z_DeleteResultSetRequest
962 Z_ReferenceId *referenceId; /* OPTIONAL */
964 #define Z_DeleteRequest_list 0
965 #define Z_DeleteRequest_all 1
967 Z_ResultSetId **resultSetList; /* OPTIONAL */
969 Z_OtherInformation *otherInfo;
971 } Z_DeleteResultSetRequest;
973 typedef struct Z_DeleteResultSetResponse
975 Z_ReferenceId *referenceId; /* OPTIONAL */
976 int *deleteOperationStatus;
978 Z_ListStatus *deleteListStatuses; /* OPTIONAL */
979 int *numberNotDeleted; /* OPTIONAL */
980 int num_bulkStatuses;
981 Z_ListStatus *bulkStatuses; /* OPTIONAL */
982 char *deleteMessage; /* OPTIONAL */
984 Z_OtherInformation *otherInfo;
986 } Z_DeleteResultSetResponse;
988 /* ------------------------ CLOSE SERVICE ------------------- */
990 typedef struct Z_Close
992 Z_ReferenceId *referenceId; /* OPTIONAL */
994 #define Z_Close_finished 0
995 #define Z_Close_shutdown 1
996 #define Z_Close_systemProblem 2
997 #define Z_Close_costLimit 3
998 #define Z_Close_resources 4
999 #define Z_Close_securityViolation 5
1000 #define Z_Close_protocolError 6
1001 #define Z_Close_lackOfActivity 7
1002 #define Z_Close_peerAbort 8
1003 #define Z_Close_unspecified 9
1004 char *diagnosticInformation; /* OPTIONAL */
1005 Odr_oid *resourceReportFormat; /* OPTIONAL */
1006 Z_External *resourceReport; /* OPTIONAL */
1008 Z_OtherInformation *otherInfo; /* OPTIONAL */
1012 /* ------------------------ SEGMENTATION -------------------- */
1014 typedef struct Z_Segment
1016 Z_ReferenceId *referenceId; /* OPTIONAL */
1017 int *numberOfRecordsReturned;
1018 int num_segmentRecords;
1019 Z_NamePlusRecord **segmentRecords;
1020 Z_OtherInformation *otherInfo; /* OPTIONAL */
1024 /* ------------------------ APDU ---------------------------- */
1026 typedef struct Z_APDU
1031 Z_APDU_initResponse,
1032 Z_APDU_searchRequest,
1033 Z_APDU_searchResponse,
1034 Z_APDU_presentRequest,
1035 Z_APDU_presentResponse,
1036 Z_APDU_deleteResultSetRequest,
1037 Z_APDU_deleteResultSetResponse,
1038 Z_APDU_resourceControlRequest,
1039 Z_APDU_resourceControlResponse,
1040 Z_APDU_triggerResourceControlRequest,
1042 Z_APDU_scanResponse,
1043 Z_APDU_segmentRequest,
1048 Z_InitRequest *initRequest;
1049 Z_InitResponse *initResponse;
1050 Z_SearchRequest *searchRequest;
1051 Z_SearchResponse *searchResponse;
1052 Z_PresentRequest *presentRequest;
1053 Z_PresentResponse *presentResponse;
1054 Z_DeleteResultSetRequest *deleteResultSetRequest;
1055 Z_DeleteResultSetResponse *deleteResultSetResponse;
1056 Z_ResourceControlRequest *resourceControlRequest;
1057 Z_ResourceControlResponse *resourceControlResponse;
1058 Z_TriggerResourceControlRequest *triggerResourceControlRequest;
1059 Z_ScanRequest *scanRequest;
1060 Z_ScanResponse *scanResponse;
1061 Z_Segment *segmentRequest;
1066 int z_APDU(ODR o, Z_APDU **p, int opt);
1067 int z_SUTRS(ODR o, Odr_oct **p, int opt);
1069 Z_InitRequest *zget_InitRequest(ODR o);
1070 Z_InitResponse *zget_InitResponse(ODR o);
1071 Z_SearchRequest *zget_SearchRequest(ODR o);
1072 Z_SearchResponse *zget_SearchResponse(ODR o);
1073 Z_PresentRequest *zget_PresentRequest(ODR o);
1074 Z_PresentResponse *zget_PresentResponse(ODR o);
1075 Z_DeleteResultSetRequest *zget_DeleteResultSetRequest(ODR o);
1076 Z_DeleteResultSetResponse *zget_DeleteResultSetResponse(ODR o);
1077 Z_ScanRequest *zget_ScanRequest(ODR o);
1078 Z_ScanResponse *zget_ScanResponse(ODR o);
1079 Z_TriggerResourceControlRequest *zget_TriggerResourceControlRequest(ODR o);
1080 Z_ResourceControlRequest *zget_ResourceControlRequest(ODR o);
1081 Z_ResourceControlResponse *zget_ResourceControlResponse(ODR o);
1082 Z_Close *zget_Close(ODR o);
1083 int z_InternationalString(ODR o, char **p, int opt);
1084 int z_OtherInformation(ODR o, Z_OtherInformation **p, int opt);
1085 int z_ElementSetName(ODR o, char **p, int opt);
1086 int z_IntUnit(ODR o, Z_IntUnit **p, int opt);
1087 int z_Unit(ODR o, Z_Unit **p, int opt);
1088 int z_DatabaseName(ODR o, Z_DatabaseName **p, int opt);
1089 int z_StringOrNumeric(ODR o, Z_StringOrNumeric **p, int opt);
1090 int z_OtherInformationUnit(ODR o, Z_OtherInformationUnit **p, int opt);
1091 int z_Term(ODR o, Z_Term **p, int opt);
1092 int z_Specification(ODR o, Z_Specification **p, int opt);
1093 Z_APDU *zget_APDU(ODR o, enum Z_APDU_which which);
1095 #include <prt-rsc.h>
1096 #include <prt-acc.h>
1097 #include <prt-exp.h>
1098 #include <prt-grs.h>
1100 #include <prt-ext.h>