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.19 1995-06-19 12:38:28 quinn
28 * Reorganized include-files. Added small features.
30 * Revision 1.18 1995/06/16 13:16:05 quinn
31 * Fixed Defaultdiagformat.
33 * Revision 1.17 1995/06/15 15:42:05 quinn
36 * Revision 1.16 1995/06/15 07:45:06 quinn
39 * Revision 1.15 1995/06/14 15:26:43 quinn
40 * *** empty log message ***
42 * Revision 1.14 1995/06/07 14:42:34 quinn
45 * Revision 1.13 1995/06/07 14:36:47 quinn
48 * Revision 1.12 1995/06/05 10:53:13 quinn
51 * Revision 1.11 1995/06/02 09:49:47 quinn
54 * Revision 1.10 1995/05/29 08:11:34 quinn
55 * Moved oid from odr/asn to util.
57 * Revision 1.9 1995/05/22 11:31:25 quinn
60 * Revision 1.8 1995/05/17 08:41:35 quinn
61 * Added delete to proto & other little things.
62 * Relaying auth info to backend.
64 * Revision 1.7 1995/05/16 08:50:37 quinn
65 * License, documentation, and memory fixes
67 * Revision 1.6 1995/05/15 11:55:55 quinn
68 * Work on asynchronous activity.
70 * Revision 1.5 1995/04/17 11:28:18 quinn
73 * Revision 1.4 1995/04/10 10:22:47 quinn
76 * Revision 1.3 1995/03/30 12:18:09 quinn
79 * Revision 1.2 1995/03/30 10:26:48 quinn
80 * Added Term structure
82 * Revision 1.1 1995/03/30 09:39:42 quinn
83 * Moved .h files to include directory
85 * Revision 1.11 1995/03/30 09:08:44 quinn
86 * Added Resource control protocol
88 * Revision 1.10 1995/03/29 15:39:39 quinn
89 * Adding some resource control elements, and a null-check to getentbyoid
91 * Revision 1.9 1995/03/29 08:06:18 quinn
92 * Added a few v3 elements
94 * Revision 1.8 1995/03/22 10:12:49 quinn
95 * Added Z_PRES constants.
97 * Revision 1.7 1995/03/20 09:45:12 quinn
100 * Revision 1.5 1995/03/07 16:29:34 quinn
101 * Added authentication stuff.
103 * Revision 1.4 1995/03/07 10:13:00 quinn
104 * Added prototype for z_APDU()
106 * Revision 1.3 1995/02/14 11:54:23 quinn
109 * Revision 1.2 1995/02/09 15:51:40 quinn
112 * Revision 1.1 1995/02/06 16:44:48 quinn
113 * First hack at Z/SR protocol
123 #include <yaz-version.h>
126 * Because we didn't have time to put all of the extra v3 elements in here
127 * before the first applications were written, we have to place them
128 * in #ifdefs in places where they would break existing code. If you are
129 * developing new stuff, we urge you to leave them in, even if you don't
130 * intend to use any v3 features. When we are comfortable that the old
131 * apps have been updated, we'll remove the #ifdefs.
136 /* ----------------- GLOBAL AUXILIARY DEFS ----------------*/
138 typedef Odr_oct Z_ReferenceId;
139 typedef char Z_DatabaseName;
140 typedef char Z_ResultSetId;
141 typedef Odr_oct Z_ResultsetId;
143 typedef struct Z_InfoCategory
145 Odr_oid *categoryTypeId; /* OPTIONAL */
149 typedef struct Z_OtherInformationUnit
151 Z_InfoCategory *category; /* OPTIONAL */
154 Z_OtherInfo_characterInfo,
155 Z_OtherInfo_binaryInfo,
156 Z_OtherInfo_externallyDefinedInfo,
163 Odr_external *externallyDefinedInfo;
166 } Z_OtherInformationUnit;
168 typedef struct Z_OtherInformation
171 Z_OtherInformationUnit **list;
172 } Z_OtherInformation;
174 typedef struct Z_StringOrNumeric
178 Z_StringOrNumeric_string,
179 Z_StringOrNumeric_numeric
188 typedef struct Z_Unit
190 char *unitSystem; /* OPTIONAL */
191 Z_StringOrNumeric *unitType; /* OPTIONAL */
192 Z_StringOrNumeric *unit; /* OPTIONAL */
193 int *scaleFactor; /* OPTIONAL */
196 typedef struct Z_IntUnit
202 typedef Odr_oct Z_SUTRS;
204 /* ----------------- INIT SERVICE ----------------*/
208 char *groupId; /* OPTIONAL */
209 char *userId; /* OPTIONAL */
210 char *password; /* OPTIONAL */
213 typedef struct Z_IdAuthentication
217 Z_IdAuthentication_open,
218 Z_IdAuthentication_idPass,
219 Z_IdAuthentication_anonymous,
220 Z_IdAuthentication_other
229 } Z_IdAuthentication;
231 #define Z_ProtocolVersion_1 0
232 #define Z_ProtocolVersion_2 1
233 #define Z_ProtocolVersion_3 2
235 #define Z_Options_search 0
236 #define Z_Options_present 1
237 #define Z_Options_delSet 2
238 #define Z_Options_resourceReport 3
239 #define Z_Options_triggerResourceCtrl 4
240 #define Z_Options_resourceCtrl 5
241 #define Z_Options_accessCtrl 6
242 #define Z_Options_scan 7
243 #define Z_Options_sort 8
244 #define Z_Options_reserved 9
245 #define Z_Options_extendedServices 10
246 #define Z_Options_level_1Segmentation 11
247 #define Z_Options_level_2Segmentation 12
248 #define Z_Options_concurrentOperations 13
249 #define Z_Options_namedResultSets 14
251 typedef struct Z_InitRequest
253 Z_ReferenceId *referenceId; /* OPTIONAL */
254 Odr_bitmask *protocolVersion;
255 Odr_bitmask *options;
256 int *preferredMessageSize;
257 int *maximumRecordSize;
258 Z_IdAuthentication* idAuthentication; /* OPTIONAL */
259 char *implementationId; /* OPTIONAL */
260 char *implementationName; /* OPTIONAL */
261 char *implementationVersion; /* OPTIONAL */
262 Odr_external *userInformationField; /* OPTIONAL */
264 Z_OtherInformation *otherInfo; /* OPTIONAL */
268 typedef struct Z_InitResponse
270 Z_ReferenceId *referenceId; /* OPTIONAL */
271 Odr_bitmask *protocolVersion;
272 Odr_bitmask *options;
273 int *preferredMessageSize;
274 int *maximumRecordSize;
276 char *implementationId; /* OPTIONAL */
277 char *implementationName; /* OPTIONAL */
278 char *implementationVersion; /* OPTIONAL */
279 Odr_external *userInformationField; /* OPTIONAL */
281 Z_OtherInformation *otherInfo; /* OPTIONAL */
285 typedef struct Z_NSRAuthentication
290 } Z_NSRAuthentication;
292 int z_NSRAuthentication(ODR o, Z_NSRAuthentication **p, int opt);
294 int z_StrAuthentication(ODR o, char **p, int opt);
296 /* ------------------ SEARCH SERVICE ----------------*/
298 typedef struct Z_DatabaseSpecificUnit
301 char *elementSetName;
302 } Z_DatabaseSpecificUnit;
304 typedef struct Z_DatabaseSpecific
307 Z_DatabaseSpecificUnit **elements;
308 } Z_DatabaseSpecific;
310 typedef struct Z_ElementSetNames
313 #define Z_ElementSetNames_generic 0
314 #define Z_ElementSetNames_databaseSpecific 1
318 Z_DatabaseSpecific *databaseSpecific;
322 /* ---------------------- RPN QUERY --------------------------- */
324 typedef struct Z_ComplexAttribute
327 Z_StringOrNumeric **list;
328 int num_semanticAction;
329 int **semanticAction; /* OPTIONAL */
330 } Z_ComplexAttribute;
332 typedef struct Z_AttributeElement
335 Odr_oid *attributeSet; /* OPTIONAL - v3 only */
341 Z_AttributeValue_numeric,
342 Z_AttributeValue_complex
347 Z_ComplexAttribute *complex;
352 } Z_AttributeElement;
354 typedef struct Z_Term
360 Z_Term_characterString,
364 Z_Term_integerAndUnit,
369 Odr_oct *general; /* this is required for v2 */
371 char *characterString;
374 Odr_external *external;
375 /* Z_IntUnit *integerAndUnit; */
380 typedef struct Z_AttributesPlusTerm
383 Z_AttributeElement **attributeList;
385 } Z_AttributesPlusTerm;
387 typedef struct Z_ResultSetPlusAttributes
391 Z_AttributeElement **attributeList;
392 } Z_ResultSetPlusAttributes;
394 typedef struct Z_ProximityOperator
396 bool_t *exclusion; /* OPTIONAL */
400 #define Z_Prox_lessThan 1
401 #define Z_Prox_lessThanOrEqual 2
402 #define Z_Prox_equal 3
403 #define Z_Prox_greaterThanOrEqual 4
404 #define Z_Prox_greaterThan 5
405 #define Z_Prox_notEqual 6
411 int *proximityUnitCode;
412 #define Z_ProxUnit_character 1
413 #define Z_ProxUnit_word 2
414 #define Z_ProxUnit_sentence 3
415 #define Z_ProxUnit_paragraph 4
416 #define Z_ProxUnit_section 5
417 #define Z_ProxUnit_chapter 6
418 #define Z_ProxUnit_document 7
419 #define Z_ProxUnit_element 8
420 #define Z_ProxUnit_subelement 9
421 #define Z_ProxUnit_elementType 10
422 #define Z_ProxUnit_byte 11 /* v3 only */
423 } Z_ProximityOperator;
425 typedef struct Z_Operator
436 Odr_null *and; /* these guys are nulls. */
439 Z_ProximityOperator *prox;
443 typedef struct Z_Operand
448 Z_Operand_resultSetId,
449 Z_Operand_resultAttr /* v3 only */
453 Z_AttributesPlusTerm *attributesPlusTerm;
454 Z_ResultSetId *resultSetId;
455 Z_ResultSetPlusAttributes *resultAttr;
459 typedef struct Z_Complex
461 struct Z_RPNStructure *s1;
462 struct Z_RPNStructure *s2;
463 Z_Operator *operator;
466 typedef struct Z_RPNStructure
470 Z_RPNStructure_simple,
471 Z_RPNStructure_complex
480 typedef struct Z_RPNQuery
482 Odr_oid *attributeSetId;
483 Z_RPNStructure *RPNStructure;
486 /* -------------------------- SEARCHREQUEST -------------------------- */
488 typedef struct Z_Query
501 Z_RPNQuery *type_101;
505 typedef struct Z_SearchRequest
507 Z_ReferenceId *referenceId; /* OPTIONAL */
508 int *smallSetUpperBound;
509 int *largeSetLowerBound;
510 int *mediumSetPresentNumber;
511 bool_t *replaceIndicator;
513 int num_databaseNames;
514 char **databaseNames;
515 Z_ElementSetNames *smallSetElementSetNames; /* OPTIONAL */
516 Z_ElementSetNames *mediumSetElementSetNames; /* OPTIONAL */
517 Odr_oid *preferredRecordSyntax; /* OPTIONAL */
520 Z_OtherInformation *additionalSearchInfo; /* OPTIONAL */
521 Z_OtherInformation *otherInfo; /* OPTIONAL */
525 /* ------------------------ RECORD -------------------------- */
527 typedef Odr_external Z_DatabaseRecord;
531 typedef struct Z_DefaultDiagFormat
533 Odr_oid *diagnosticSetId; /* This is opt'l to interwork with bad targets */
535 /* until the whole character set issue becomes more definite,
536 * you can probably ignore this on input. */
539 Z_DiagForm_v2AddInfo,
543 } Z_DefaultDiagFormat;
545 typedef struct Z_DiagRec
549 Z_DiagRec_defaultFormat,
550 Z_DiagRec_externallyDefined
554 Z_DefaultDiagFormat *defaultFormat;
555 Odr_external *externallyDefined;
561 typedef struct Z_DiagRec
563 Odr_oid *diagnosticSetId; /* This is opt'l to interwork with bad targets */
570 typedef struct Z_DiagRecs
573 Z_DiagRec **diagRecs;
576 typedef struct Z_NamePlusRecord
578 char *databaseName; /* OPTIONAL */
581 Z_NamePlusRecord_databaseRecord,
582 Z_NamePlusRecord_surrogateDiagnostic
587 Z_DatabaseRecord *databaseRecord;
588 Z_DiagRec *surrogateDiagnostic;
592 typedef struct Z_NamePlusRecordList
595 Z_NamePlusRecord **records;
596 } Z_NamePlusRecordList;
598 typedef struct Z_Records
604 Z_Records_multipleNSD
608 Z_NamePlusRecordList *databaseOrSurDiagnostics;
609 Z_DiagRec *nonSurrogateDiagnostic;
610 Z_DiagRecs *multipleNonSurDiagnostics;
614 /* ------------------------ SEARCHRESPONSE ------------------ */
616 typedef struct Z_SearchResponse
618 Z_ReferenceId *referenceId; /* OPTIONAL */
620 int *numberOfRecordsReturned;
621 int *nextResultSetPosition;
622 bool_t *searchStatus;
623 int *resultSetStatus; /* OPTIONAL */
624 #define Z_RES_SUBSET 1
625 #define Z_RES_INTERIM 2
627 int *presentStatus; /* OPTIONAL */
628 #define Z_PRES_SUCCESS 0
629 #define Z_PRES_PARTIAL_1 1
630 #define Z_PRES_PARTIAL_2 2
631 #define Z_PRES_PARTIAL_3 3
632 #define Z_PRES_PARTIAL_4 4
633 #define Z_PRES_FAILURE 5
634 Z_Records *records; /* OPTIONAL */
636 Z_OtherInformation *additionalSearchInfo;
637 Z_OtherInformation *otherInfo;
641 /* ------------------------- PRESENT SERVICE -----------------*/
643 typedef struct Z_ElementSpec
647 Z_ElementSpec_elementSetName,
648 Z_ElementSpec_externalSpec
652 char *elementSetName;
653 Odr_external *externalSpec;
657 typedef struct Z_Specification
659 Odr_oid *schema; /* OPTIONAL */
660 Z_ElementSpec *elementSpec; /* OPTIONAL */
663 typedef struct Z_DbSpecific
666 Z_Specification *spec;
669 typedef struct Z_CompSpec
671 bool_t *selectAlternativeSyntax;
672 Z_Specification *generic; /* OPTIONAL */
674 Z_DbSpecific **dbSpecific; /* OPTIONAL */
675 int num_recordSyntax;
676 Odr_oid **recordSyntax; /* OPTIONAL */
679 typedef struct Z_RecordComposition
688 Z_ElementSetNames *simple;
691 } Z_RecordComposition;
693 typedef struct Z_Range
695 int *startingPosition;
696 int *numberOfRecords;
699 typedef struct Z_PresentRequest
701 Z_ReferenceId *referenceId; /* OPTIONAL */
702 Z_ResultSetId *resultSetId;
703 int *resultSetStartPoint;
704 int *numberOfRecordsRequested;
707 Z_Range **additionalRanges; /* OPTIONAL */
708 Z_RecordComposition *recordComposition; /* OPTIONAL */
710 Z_ElementSetNames *elementSetNames; /* OPTIONAL */
712 Odr_oid *preferredRecordSyntax; /* OPTIONAL */
714 int *maxSegmentCount; /* OPTIONAL */
715 int *maxRecordSize; /* OPTIONAL */
716 int *maxSegmentSize; /* OPTIONAL */
717 Z_OtherInformation *otherInfo; /* OPTIONAL */
721 typedef struct Z_PresentResponse
723 Z_ReferenceId *referenceId; /* OPTIONAL */
724 int *numberOfRecordsReturned;
725 int *nextResultSetPosition;
729 Z_OtherInformation *otherInfo; /* OPTIONAL */
733 /* ------------------ RESOURCE CONTROL ----------------*/
735 typedef struct Z_TriggerResourceControlRequest
737 Z_ReferenceId *referenceId; /* OPTIONAL */
738 int *requestedAction;
739 #define Z_TriggerResourceCtrl_resourceReport 1
740 #define Z_TriggerResourceCtrl_resourceControl 2
741 #define Z_TriggerResourceCtrl_cancel 3
742 Odr_oid *prefResourceReportFormat; /* OPTIONAL */
743 bool_t *resultSetWanted; /* OPTIONAL */
745 Z_OtherInformation *otherInfo;
747 } Z_TriggerResourceControlRequest;
749 typedef struct Z_ResourceControlRequest
751 Z_ReferenceId *referenceId; /* OPTIONAL */
752 bool_t *suspendedFlag; /* OPTIONAL */
753 Odr_external *resourceReport; /* OPTIONAL */
754 int *partialResultsAvailable; /* OPTIONAL */
755 #define Z_ResourceControlRequest_subset 1
756 #define Z_ResourceControlRequest_interim 2
757 #define Z_ResourceControlRequest_none 3
758 bool_t *responseRequired;
759 bool_t *triggeredRequestFlag; /* OPTIONAL */
761 Z_OtherInformation *otherInfo;
763 } Z_ResourceControlRequest;
765 typedef struct Z_ResourceControlResponse
767 Z_ReferenceId *referenceId; /* OPTIONAL */
768 bool_t *continueFlag;
769 bool_t *resultSetWanted; /* OPTIONAL */
771 Z_OtherInformation *otherInfo;
773 } Z_ResourceControlResponse;
776 /* ------------------ ACCESS CTRL SERVICE ----------------*/
778 typedef struct Z_AccessControlRequest
780 Z_ReferenceId *referenceId; /* OPTIONAL */
783 Z_AccessRequest_simpleForm,
784 Z_AccessRequest_externallyDefined
789 Odr_external *externallyDefined;
792 Z_OtherInformation *otherInfo; /* OPTIONAL */
794 } Z_AccessControlRequest;
796 typedef struct Z_AccessControlResponse
798 Z_ReferenceId *referenceId; /* OPTIONAL */
801 Z_AccessResponse_simpleForm,
802 Z_AccessResponse_externallyDefined
807 Odr_external *externallyDefined;
809 Z_DiagRec *diagnostic; /* OPTIONAL */
811 Z_OtherInformation *otherInfo; /* OPTIONAL */
813 } Z_AccessControlResponse;
815 /* ------------------------ SCAN SERVICE -------------------- */
817 typedef struct Z_AttributeList
820 Z_AttributeElement **attributes;
823 typedef struct Z_AlternativeTerm
826 Z_AttributesPlusTerm **terms;
829 typedef struct Z_OccurrenceByAttributes
831 Z_AttributeList *attributes;
843 /* Z_ByDatabase *byDatabase; */
846 } Z_OccurrenceByAttributes;
848 typedef struct Z_TermInfo
851 Z_AttributeList *suggestedAttributes; /* OPTIONAL */
852 Z_AlternativeTerm *alternativeTerm; /* OPTIONAL */
853 int *globalOccurrences; /* OPTIONAL */
854 Z_OccurrenceByAttributes *byAttributes; /* OPTIONAL */
857 typedef struct Z_Entry
862 Z_Entry_surrogateDiagnostic
866 Z_TermInfo *termInfo;
867 Z_DiagRec *surrogateDiagnostic;
871 typedef struct Z_Entries
877 typedef struct Z_ListEntries
881 Z_ListEntries_entries,
882 Z_ListEntries_nonSurrogateDiagnostics
887 Z_DiagRecs *nonSurrogateDiagnostics;
891 typedef struct Z_ScanRequest
893 Z_ReferenceId *referenceId; /* OPTIONAL */
894 int num_databaseNames;
895 char **databaseNames;
896 Odr_oid *attributeSet; /* OPTIONAL */
897 Z_AttributesPlusTerm *termListAndStartPoint;
898 int *stepSize; /* OPTIONAL */
899 int *numberOfTermsRequested;
900 int *preferredPositionInResponse; /* OPTIONAL */
902 Z_OtherInformation *otherInfo;
906 typedef struct Z_ScanResponse
908 Z_ReferenceId *referenceId; /* OPTIONAL */
909 int *stepSize; /* OPTIONAL */
911 #define Z_Scan_success 0
912 #define Z_Scan_partial_1 1
913 #define Z_Scan_partial_2 2
914 #define Z_Scan_partial_3 3
915 #define Z_Scan_partial_4 4
916 #define Z_Scan_partial_5 5
917 #define Z_Scan_failure 6
918 int *numberOfEntriesReturned;
919 int *positionOfTerm; /* OPTIONAL */
920 Z_ListEntries *entries; /* OPTIONAL */
921 Odr_oid *attributeSet; /* OPTIONAL */
923 Z_OtherInformation *otherInfo;
928 /* ------------------------ DELETE -------------------------- */
930 #define Z_DeleteStatus_success 0
931 #define Z_DeleteStatus_resultSetDidNotExist 1
932 #define Z_DeleteStatus_previouslyDeletedByTarget 2
933 #define Z_DeleteStatus_systemProblemAtTarget 3
934 #define Z_DeleteStatus_accessNotAllowed 4
935 #define Z_DeleteStatus_resourceControlAtOrigin 5
936 #define Z_DeleteStatus_resourceControlAtTarget 6
937 #define Z_DeleteStatus_bulkDeleteNotSupported 7
938 #define Z_DeleteStatus_notAllRsltSetsDeletedOnBulkDlte 8
939 #define Z_DeleteStatus_notAllRequestedResultSetsDeleted 9
940 #define Z_DeleteStatus_resultSetInUse 10
942 typedef struct Z_ListStatus
948 typedef struct Z_DeleteResultSetRequest
950 Z_ReferenceId *referenceId; /* OPTIONAL */
952 #define Z_DeleteRequest_list 0
953 #define Z_DeleteRequest_all 1
955 Z_ResultSetId **resultSetList; /* OPTIONAL */
957 Z_OtherInformation *otherInfo;
959 } Z_DeleteResultSetRequest;
961 typedef struct Z_DeleteResultSetResponse
963 Z_ReferenceId *referenceId; /* OPTIONAL */
964 int *deleteOperationStatus;
966 Z_ListStatus *deleteListStatuses; /* OPTIONAL */
967 int *numberNotDeleted; /* OPTIONAL */
968 int num_bulkStatuses;
969 Z_ListStatus *bulkStatuses; /* OPTIONAL */
970 char *deleteMessage; /* OPTIONAL */
972 Z_OtherInformation *otherInfo;
974 } Z_DeleteResultSetResponse;
976 /* ------------------------ CLOSE SERVICE ------------------- */
978 typedef struct Z_Close
980 Z_ReferenceId *referenceId; /* OPTIONAL */
982 #define Z_Close_finished 0
983 #define Z_Close_shutdown 1
984 #define Z_Close_systemProblem 2
985 #define Z_Close_costLimit 3
986 #define Z_Close_resources 4
987 #define Z_Close_securityViolation 5
988 #define Z_Close_protocolError 6
989 #define Z_Close_lackOfActivity 7
990 #define Z_Close_peerAbort 8
991 #define Z_Close_unspecified 9
992 char *diagnosticInformation; /* OPTIONAL */
993 Odr_oid *resourceReportFormat; /* OPTIONAL */
994 Odr_external *resourceReport; /* OPTIONAL */
996 Z_OtherInformation *otherInfo; /* OPTIONAL */
1000 /* ------------------------ SEGMENTATION -------------------- */
1002 typedef struct Z_Segment
1004 Z_ReferenceId *referenceId; /* OPTIONAL */
1005 int *numberOfRecordsReturned;
1006 int num_segmentRecords;
1007 Z_NamePlusRecord **segmentRecords;
1008 Z_OtherInformation *otherInfo; /* OPTIONAL */
1012 /* ------------------------ APDU ---------------------------- */
1014 typedef struct Z_APDU
1019 Z_APDU_initResponse,
1020 Z_APDU_searchRequest,
1021 Z_APDU_searchResponse,
1022 Z_APDU_presentRequest,
1023 Z_APDU_presentResponse,
1024 Z_APDU_deleteResultSetRequest,
1025 Z_APDU_deleteResultSetResponse,
1026 Z_APDU_resourceControlRequest,
1027 Z_APDU_resourceControlResponse,
1028 Z_APDU_triggerResourceControlRequest,
1030 Z_APDU_scanResponse,
1031 Z_APDU_segmentRequest,
1036 Z_InitRequest *initRequest;
1037 Z_InitResponse *initResponse;
1038 Z_SearchRequest *searchRequest;
1039 Z_SearchResponse *searchResponse;
1040 Z_PresentRequest *presentRequest;
1041 Z_PresentResponse *presentResponse;
1042 Z_DeleteResultSetRequest *deleteResultSetRequest;
1043 Z_DeleteResultSetResponse *deleteResultSetResponse;
1044 Z_ResourceControlRequest *resourceControlRequest;
1045 Z_ResourceControlResponse *resourceControlResponse;
1046 Z_TriggerResourceControlRequest *triggerResourceControlRequest;
1047 Z_ScanRequest *scanRequest;
1048 Z_ScanResponse *scanResponse;
1049 Z_Segment *segmentRequest;
1054 int z_APDU(ODR o, Z_APDU **p, int opt);
1055 int z_SUTRS(ODR o, Odr_oct **p, int opt);
1057 Z_InitRequest *zget_InitRequest(ODR o);
1058 Z_InitResponse *zget_InitResponse(ODR o);
1059 Z_SearchRequest *zget_SearchRequest(ODR o);
1060 Z_SearchResponse *zget_SearchResponse(ODR o);
1061 Z_PresentRequest *zget_PresentRequest(ODR o);
1062 Z_PresentResponse *zget_PresentResponse(ODR o);
1063 Z_DeleteResultSetRequest *zget_DeleteResultSetRequest(ODR o);
1064 Z_DeleteResultSetResponse *zget_DeleteResultSetResponse(ODR o);
1065 Z_ScanRequest *zget_ScanRequest(ODR o);
1066 Z_ScanResponse *zget_ScanResponse(ODR o);
1067 Z_TriggerResourceControlRequest *zget_TriggerResourceControlRequest(ODR o);
1068 Z_ResourceControlRequest *zget_ResourceControlRequest(ODR o);
1069 Z_ResourceControlResponse *zget_ResourceControlResponse(ODR o);
1070 Z_Close *zget_Close(ODR o);
1071 Z_APDU *zget_APDU(ODR o, enum Z_APDU_which which);
1073 #include <prt-rsc.h>
1074 #include <prt-acc.h>