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.18 1995-06-16 13:16:05 quinn
28 * Fixed Defaultdiagformat.
30 * Revision 1.17 1995/06/15 15:42:05 quinn
33 * Revision 1.16 1995/06/15 07:45:06 quinn
36 * Revision 1.15 1995/06/14 15:26:43 quinn
37 * *** empty log message ***
39 * Revision 1.14 1995/06/07 14:42:34 quinn
42 * Revision 1.13 1995/06/07 14:36:47 quinn
45 * Revision 1.12 1995/06/05 10:53:13 quinn
48 * Revision 1.11 1995/06/02 09:49:47 quinn
51 * Revision 1.10 1995/05/29 08:11:34 quinn
52 * Moved oid from odr/asn to util.
54 * Revision 1.9 1995/05/22 11:31:25 quinn
57 * Revision 1.8 1995/05/17 08:41:35 quinn
58 * Added delete to proto & other little things.
59 * Relaying auth info to backend.
61 * Revision 1.7 1995/05/16 08:50:37 quinn
62 * License, documentation, and memory fixes
64 * Revision 1.6 1995/05/15 11:55:55 quinn
65 * Work on asynchronous activity.
67 * Revision 1.5 1995/04/17 11:28:18 quinn
70 * Revision 1.4 1995/04/10 10:22:47 quinn
73 * Revision 1.3 1995/03/30 12:18:09 quinn
76 * Revision 1.2 1995/03/30 10:26:48 quinn
77 * Added Term structure
79 * Revision 1.1 1995/03/30 09:39:42 quinn
80 * Moved .h files to include directory
82 * Revision 1.11 1995/03/30 09:08:44 quinn
83 * Added Resource control protocol
85 * Revision 1.10 1995/03/29 15:39:39 quinn
86 * Adding some resource control elements, and a null-check to getentbyoid
88 * Revision 1.9 1995/03/29 08:06:18 quinn
89 * Added a few v3 elements
91 * Revision 1.8 1995/03/22 10:12:49 quinn
92 * Added Z_PRES constants.
94 * Revision 1.7 1995/03/20 09:45:12 quinn
97 * Revision 1.5 1995/03/07 16:29:34 quinn
98 * Added authentication stuff.
100 * Revision 1.4 1995/03/07 10:13:00 quinn
101 * Added prototype for z_APDU()
103 * Revision 1.3 1995/02/14 11:54:23 quinn
106 * Revision 1.2 1995/02/09 15:51:40 quinn
109 * Revision 1.1 1995/02/06 16:44:48 quinn
110 * First hack at Z/SR protocol
120 #include <yaz-version.h>
123 * Because we didn't have time to put all of the extra v3 elements in here
124 * before the first applications were written, we have to place them
125 * in #ifdefs in places where they would break existing code. If you are
126 * developing new stuff, we urge you to leave them in, even if you don't
127 * intend to use any v3 features. When we are comfortable that the old
128 * apps have been updated, we'll remove the #ifdefs.
133 /* ----------------- GLOBAL AUXILIARY DEFS ----------------*/
135 typedef Odr_oct Z_ReferenceId;
136 typedef char Z_DatabaseName;
137 typedef char Z_ResultSetId;
138 typedef Odr_oct Z_ResultsetId;
140 typedef struct Z_InfoCategory
142 Odr_oid *categoryTypeId; /* OPTIONAL */
146 typedef struct Z_OtherInformationUnit
148 Z_InfoCategory *category; /* OPTIONAL */
151 Z_OtherInfo_characterInfo,
152 Z_OtherInfo_binaryInfo,
153 Z_OtherInfo_externallyDefinedInfo,
160 Odr_external *externallyDefinedInfo;
163 } Z_OtherInformationUnit;
165 typedef struct Z_OtherInformation
168 Z_OtherInformationUnit **list;
169 } Z_OtherInformation;
171 typedef struct Z_StringOrNumeric
175 Z_StringOrNumeric_string,
176 Z_StringOrNumeric_numeric
185 typedef struct Z_Unit
187 char *unitSystem; /* OPTIONAL */
188 Z_StringOrNumeric *unitType; /* OPTIONAL */
189 Z_StringOrNumeric *unit; /* OPTIONAL */
190 int *scaleFactor; /* OPTIONAL */
193 typedef struct Z_IntUnit
199 /* ----------------- INIT SERVICE ----------------*/
203 char *groupId; /* OPTIONAL */
204 char *userId; /* OPTIONAL */
205 char *password; /* OPTIONAL */
208 typedef struct Z_IdAuthentication
212 Z_IdAuthentication_open,
213 Z_IdAuthentication_idPass,
214 Z_IdAuthentication_anonymous,
215 Z_IdAuthentication_other
224 } Z_IdAuthentication;
226 #define Z_ProtocolVersion_1 0
227 #define Z_ProtocolVersion_2 1
228 #define Z_ProtocolVersion_3 2
230 #define Z_Options_search 0
231 #define Z_Options_present 1
232 #define Z_Options_delSet 2
233 #define Z_Options_resourceReport 3
234 #define Z_Options_triggerResourceCtrl 4
235 #define Z_Options_resourceCtrl 5
236 #define Z_Options_accessCtrl 6
237 #define Z_Options_scan 7
238 #define Z_Options_sort 8
239 #define Z_Options_reserved 9
240 #define Z_Options_extendedServices 10
241 #define Z_Options_level_1Segmentation 11
242 #define Z_Options_level_2Segmentation 12
243 #define Z_Options_concurrentOperations 13
244 #define Z_Options_namedResultSets 14
246 typedef struct Z_InitRequest
248 Z_ReferenceId *referenceId; /* OPTIONAL */
249 Odr_bitmask *protocolVersion;
250 Odr_bitmask *options;
251 int *preferredMessageSize;
252 int *maximumRecordSize;
253 Z_IdAuthentication* idAuthentication; /* OPTIONAL */
254 char *implementationId; /* OPTIONAL */
255 char *implementationName; /* OPTIONAL */
256 char *implementationVersion; /* OPTIONAL */
257 Odr_external *userInformationField; /* OPTIONAL */
259 Z_OtherInformation *otherInfo; /* OPTIONAL */
263 typedef struct Z_InitResponse
265 Z_ReferenceId *referenceId; /* OPTIONAL */
266 Odr_bitmask *protocolVersion;
267 Odr_bitmask *options;
268 int *preferredMessageSize;
269 int *maximumRecordSize;
271 char *implementationId; /* OPTIONAL */
272 char *implementationName; /* OPTIONAL */
273 char *implementationVersion; /* OPTIONAL */
274 Odr_external *userInformationField; /* OPTIONAL */
276 Z_OtherInformation *otherInfo; /* OPTIONAL */
280 typedef struct Z_NSRAuthentication
285 } Z_NSRAuthentication;
287 int z_NSRAuthentication(ODR o, Z_NSRAuthentication **p, int opt);
289 int z_StrAuthentication(ODR o, char **p, int opt);
291 /* ------------------ SEARCH SERVICE ----------------*/
293 typedef struct Z_DatabaseSpecificUnit
296 char *elementSetName;
297 } Z_DatabaseSpecificUnit;
299 typedef struct Z_DatabaseSpecific
302 Z_DatabaseSpecificUnit **elements;
303 } Z_DatabaseSpecific;
305 typedef struct Z_ElementSetNames
308 #define Z_ElementSetNames_generic 0
309 #define Z_ElementSetNames_databaseSpecific 1
313 Z_DatabaseSpecific *databaseSpecific;
317 /* ---------------------- RPN QUERY --------------------------- */
319 typedef struct Z_ComplexAttribute
322 Z_StringOrNumeric **list;
323 int num_semanticAction;
324 int **semanticAction; /* OPTIONAL */
325 } Z_ComplexAttribute;
327 typedef struct Z_AttributeElement
330 Odr_oid *attributeSet; /* OPTIONAL - v3 only */
336 Z_AttributeValue_numeric,
337 Z_AttributeValue_complex
342 Z_ComplexAttribute *complex;
347 } Z_AttributeElement;
349 typedef struct Z_Term
355 Z_Term_characterString,
359 Z_Term_integerAndUnit,
364 Odr_oct *general; /* this is required for v2 */
366 char *characterString;
369 Odr_external *external;
370 /* Z_IntUnit *integerAndUnit; */
375 typedef struct Z_AttributesPlusTerm
378 Z_AttributeElement **attributeList;
380 } Z_AttributesPlusTerm;
382 typedef struct Z_ResultSetPlusAttributes
386 Z_AttributeElement **attributeList;
387 } Z_ResultSetPlusAttributes;
389 typedef struct Z_ProximityOperator
391 bool_t *exclusion; /* OPTIONAL */
395 #define Z_Prox_lessThan 1
396 #define Z_Prox_lessThanOrEqual 2
397 #define Z_Prox_equal 3
398 #define Z_Prox_greaterThanOrEqual 4
399 #define Z_Prox_greaterThan 5
400 #define Z_Prox_notEqual 6
406 int *proximityUnitCode;
407 #define Z_ProxUnit_character 1
408 #define Z_ProxUnit_word 2
409 #define Z_ProxUnit_sentence 3
410 #define Z_ProxUnit_paragraph 4
411 #define Z_ProxUnit_section 5
412 #define Z_ProxUnit_chapter 6
413 #define Z_ProxUnit_document 7
414 #define Z_ProxUnit_element 8
415 #define Z_ProxUnit_subelement 9
416 #define Z_ProxUnit_elementType 10
417 #define Z_ProxUnit_byte 11 /* v3 only */
418 } Z_ProximityOperator;
420 typedef struct Z_Operator
431 Odr_null *and; /* these guys are nulls. */
434 Z_ProximityOperator *prox;
438 typedef struct Z_Operand
443 Z_Operand_resultSetId,
444 Z_Operand_resultAttr /* v3 only */
448 Z_AttributesPlusTerm *attributesPlusTerm;
449 Z_ResultSetId *resultSetId;
450 Z_ResultSetPlusAttributes *resultAttr;
454 typedef struct Z_Complex
456 struct Z_RPNStructure *s1;
457 struct Z_RPNStructure *s2;
458 Z_Operator *operator;
461 typedef struct Z_RPNStructure
465 Z_RPNStructure_simple,
466 Z_RPNStructure_complex
475 typedef struct Z_RPNQuery
477 Odr_oid *attributeSetId;
478 Z_RPNStructure *RPNStructure;
481 /* -------------------------- SEARCHREQUEST -------------------------- */
483 typedef struct Z_Query
496 Z_RPNQuery *type_101;
500 typedef struct Z_SearchRequest
502 Z_ReferenceId *referenceId; /* OPTIONAL */
503 int *smallSetUpperBound;
504 int *largeSetLowerBound;
505 int *mediumSetPresentNumber;
506 bool_t *replaceIndicator;
508 int num_databaseNames;
509 char **databaseNames;
510 Z_ElementSetNames *smallSetElementSetNames; /* OPTIONAL */
511 Z_ElementSetNames *mediumSetElementSetNames; /* OPTIONAL */
512 Odr_oid *preferredRecordSyntax; /* OPTIONAL */
515 Z_OtherInformation *additionalSearchInfo; /* OPTIONAL */
516 Z_OtherInformation *otherInfo; /* OPTIONAL */
520 /* ------------------------ RECORD -------------------------- */
522 typedef Odr_external Z_DatabaseRecord;
526 typedef struct Z_DefaultDiagFormat
528 Odr_oid *diagnosticSetId; /* This is opt'l to interwork with bad targets */
530 /* until the whole character set issue becomes more definite,
531 * you can probably ignore this on input. */
534 Z_DiagForm_v2AddInfo,
538 } Z_DefaultDiagFormat;
540 typedef struct Z_DiagRec
544 Z_DiagRec_defaultFormat,
545 Z_DiagRec_externallyDefined
549 Z_DefaultDiagFormat *defaultFormat;
550 Odr_external *externallyDefined;
556 typedef struct Z_DiagRec
558 Odr_oid *diagnosticSetId; /* This is opt'l to interwork with bad targets */
565 typedef struct Z_DiagRecs
568 Z_DiagRec **diagRecs;
571 typedef struct Z_NamePlusRecord
573 char *databaseName; /* OPTIONAL */
576 Z_NamePlusRecord_databaseRecord,
577 Z_NamePlusRecord_surrogateDiagnostic
582 Z_DatabaseRecord *databaseRecord;
583 Z_DiagRec *surrogateDiagnostic;
587 typedef struct Z_NamePlusRecordList
590 Z_NamePlusRecord **records;
591 } Z_NamePlusRecordList;
593 typedef struct Z_Records
599 Z_Records_multipleNSD
603 Z_NamePlusRecordList *databaseOrSurDiagnostics;
604 Z_DiagRec *nonSurrogateDiagnostic;
605 Z_DiagRecs *multipleNonSurDiagnostics;
609 /* ------------------------ SEARCHRESPONSE ------------------ */
611 typedef struct Z_SearchResponse
613 Z_ReferenceId *referenceId; /* OPTIONAL */
615 int *numberOfRecordsReturned;
616 int *nextResultSetPosition;
617 bool_t *searchStatus;
618 int *resultSetStatus; /* OPTIONAL */
619 #define Z_RES_SUBSET 1
620 #define Z_RES_INTERIM 2
622 int *presentStatus; /* OPTIONAL */
623 #define Z_PRES_SUCCESS 0
624 #define Z_PRES_PARTIAL_1 1
625 #define Z_PRES_PARTIAL_2 2
626 #define Z_PRES_PARTIAL_3 3
627 #define Z_PRES_PARTIAL_4 4
628 #define Z_PRES_FAILURE 5
629 Z_Records *records; /* OPTIONAL */
631 Z_OtherInformation *additionalSearchInfo;
632 Z_OtherInformation *otherInfo;
636 /* ------------------------- PRESENT SERVICE -----------------*/
638 typedef struct Z_ElementSpec
642 Z_ElementSpec_elementSetName,
643 Z_ElementSpec_externalSpec
647 char *elementSetName;
648 Odr_external *externalSpec;
652 typedef struct Z_Specification
654 Odr_oid *schema; /* OPTIONAL */
655 Z_ElementSpec *elementSpec; /* OPTIONAL */
658 typedef struct Z_DbSpecific
661 Z_Specification *spec;
664 typedef struct Z_CompSpec
666 bool_t *selectAlternativeSyntax;
667 Z_Specification *generic; /* OPTIONAL */
669 Z_DbSpecific **dbSpecific; /* OPTIONAL */
670 int num_recordSyntax;
671 Odr_oid **recordSyntax; /* OPTIONAL */
674 typedef struct Z_RecordComposition
683 Z_ElementSetNames *simple;
686 } Z_RecordComposition;
688 typedef struct Z_Range
690 int *startingPosition;
691 int *numberOfRecords;
694 typedef struct Z_PresentRequest
696 Z_ReferenceId *referenceId; /* OPTIONAL */
697 Z_ResultSetId *resultSetId;
698 int *resultSetStartPoint;
699 int *numberOfRecordsRequested;
702 Z_Range **additionalRanges; /* OPTIONAL */
703 Z_RecordComposition *recordComposition; /* OPTIONAL */
705 Z_ElementSetNames *elementSetNames; /* OPTIONAL */
707 Odr_oid *preferredRecordSyntax; /* OPTIONAL */
709 int *maxSegmentCount; /* OPTIONAL */
710 int *maxRecordSize; /* OPTIONAL */
711 int *maxSegmentSize; /* OPTIONAL */
712 Z_OtherInformation *otherInfo; /* OPTIONAL */
716 typedef struct Z_PresentResponse
718 Z_ReferenceId *referenceId; /* OPTIONAL */
719 int *numberOfRecordsReturned;
720 int *nextResultSetPosition;
724 Z_OtherInformation *otherInfo; /* OPTIONAL */
728 /* ------------------ RESOURCE CONTROL ----------------*/
730 typedef struct Z_TriggerResourceControlRequest
732 Z_ReferenceId *referenceId; /* OPTIONAL */
733 int *requestedAction;
734 #define Z_TriggerResourceCtrl_resourceReport 1
735 #define Z_TriggerResourceCtrl_resourceControl 2
736 #define Z_TriggerResourceCtrl_cancel 3
737 Odr_oid *prefResourceReportFormat; /* OPTIONAL */
738 bool_t *resultSetWanted; /* OPTIONAL */
740 Z_OtherInformation *otherInfo;
742 } Z_TriggerResourceControlRequest;
744 typedef struct Z_ResourceControlRequest
746 Z_ReferenceId *referenceId; /* OPTIONAL */
747 bool_t *suspendedFlag; /* OPTIONAL */
748 Odr_external *resourceReport; /* OPTIONAL */
749 int *partialResultsAvailable; /* OPTIONAL */
750 #define Z_ResourceControlRequest_subset 1
751 #define Z_ResourceControlRequest_interim 2
752 #define Z_ResourceControlRequest_none 3
753 bool_t *responseRequired;
754 bool_t *triggeredRequestFlag; /* OPTIONAL */
756 Z_OtherInformation *otherInfo;
758 } Z_ResourceControlRequest;
760 typedef struct Z_ResourceControlResponse
762 Z_ReferenceId *referenceId; /* OPTIONAL */
763 bool_t *continueFlag;
764 bool_t *resultSetWanted; /* OPTIONAL */
766 Z_OtherInformation *otherInfo;
768 } Z_ResourceControlResponse;
771 /* ------------------ ACCESS CTRL SERVICE ----------------*/
773 typedef struct Z_AccessControlRequest
775 Z_ReferenceId *referenceId; /* OPTIONAL */
778 Z_AccessRequest_simpleForm,
779 Z_AccessRequest_externallyDefined
784 Odr_external *externallyDefined;
787 Z_OtherInformation *otherInfo; /* OPTIONAL */
789 } Z_AccessControlRequest;
791 typedef struct Z_AccessControlResponse
793 Z_ReferenceId *referenceId; /* OPTIONAL */
796 Z_AccessResponse_simpleForm,
797 Z_AccessResponse_externallyDefined
802 Odr_external *externallyDefined;
804 Z_DiagRec *diagnostic; /* OPTIONAL */
806 Z_OtherInformation *otherInfo; /* OPTIONAL */
808 } Z_AccessControlResponse;
810 /* ------------------------ SCAN SERVICE -------------------- */
812 typedef struct Z_AttributeList
815 Z_AttributeElement **attributes;
818 typedef struct Z_AlternativeTerm
821 Z_AttributesPlusTerm **terms;
824 typedef struct Z_OccurrenceByAttributes
826 Z_AttributeList *attributes;
838 /* Z_ByDatabase *byDatabase; */
841 } Z_OccurrenceByAttributes;
843 typedef struct Z_TermInfo
846 Z_AttributeList *suggestedAttributes; /* OPTIONAL */
847 Z_AlternativeTerm *alternativeTerm; /* OPTIONAL */
848 int *globalOccurrences; /* OPTIONAL */
849 Z_OccurrenceByAttributes *byAttributes; /* OPTIONAL */
852 typedef struct Z_Entry
857 Z_Entry_surrogateDiagnostic
861 Z_TermInfo *termInfo;
862 Z_DiagRec *surrogateDiagnostic;
866 typedef struct Z_Entries
872 typedef struct Z_ListEntries
876 Z_ListEntries_entries,
877 Z_ListEntries_nonSurrogateDiagnostics
882 Z_DiagRecs *nonSurrogateDiagnostics;
886 typedef struct Z_ScanRequest
888 Z_ReferenceId *referenceId; /* OPTIONAL */
889 int num_databaseNames;
890 char **databaseNames;
891 Odr_oid *attributeSet; /* OPTIONAL */
892 Z_AttributesPlusTerm *termListAndStartPoint;
893 int *stepSize; /* OPTIONAL */
894 int *numberOfTermsRequested;
895 int *preferredPositionInResponse; /* OPTIONAL */
897 Z_OtherInformation *otherInfo;
901 typedef struct Z_ScanResponse
903 Z_ReferenceId *referenceId; /* OPTIONAL */
904 int *stepSize; /* OPTIONAL */
906 #define Z_Scan_success 0
907 #define Z_Scan_partial_1 1
908 #define Z_Scan_partial_2 2
909 #define Z_Scan_partial_3 3
910 #define Z_Scan_partial_4 4
911 #define Z_Scan_partial_5 5
912 #define Z_Scan_failure 6
913 int *numberOfEntriesReturned;
914 int *positionOfTerm; /* OPTIONAL */
915 Z_ListEntries *entries; /* OPTIONAL */
916 Odr_oid *attributeSet; /* OPTIONAL */
918 Z_OtherInformation *otherInfo;
923 /* ------------------------ DELETE -------------------------- */
925 #define Z_DeleteStatus_success 0
926 #define Z_DeleteStatus_resultSetDidNotExist 1
927 #define Z_DeleteStatus_previouslyDeletedByTarget 2
928 #define Z_DeleteStatus_systemProblemAtTarget 3
929 #define Z_DeleteStatus_accessNotAllowed 4
930 #define Z_DeleteStatus_resourceControlAtOrigin 5
931 #define Z_DeleteStatus_resourceControlAtTarget 6
932 #define Z_DeleteStatus_bulkDeleteNotSupported 7
933 #define Z_DeleteStatus_notAllRsltSetsDeletedOnBulkDlte 8
934 #define Z_DeleteStatus_notAllRequestedResultSetsDeleted 9
935 #define Z_DeleteStatus_resultSetInUse 10
937 typedef struct Z_ListStatus
943 typedef struct Z_DeleteResultSetRequest
945 Z_ReferenceId *referenceId; /* OPTIONAL */
947 #define Z_DeleteRequest_list 0
948 #define Z_DeleteRequest_all 1
950 Z_ResultSetId **resultSetList; /* OPTIONAL */
952 Z_OtherInformation *otherInfo;
954 } Z_DeleteResultSetRequest;
956 typedef struct Z_DeleteResultSetResponse
958 Z_ReferenceId *referenceId; /* OPTIONAL */
959 int *deleteOperationStatus;
961 Z_ListStatus *deleteListStatuses; /* OPTIONAL */
962 int *numberNotDeleted; /* OPTIONAL */
963 int num_bulkStatuses;
964 Z_ListStatus *bulkStatuses; /* OPTIONAL */
965 char *deleteMessage; /* OPTIONAL */
967 Z_OtherInformation *otherInfo;
969 } Z_DeleteResultSetResponse;
971 /* ------------------------ CLOSE SERVICE ------------------- */
973 typedef struct Z_Close
975 Z_ReferenceId *referenceId; /* OPTIONAL */
977 #define Z_Close_finished 0
978 #define Z_Close_shutdown 1
979 #define Z_Close_systemProblem 2
980 #define Z_Close_costLimit 3
981 #define Z_Close_resources 4
982 #define Z_Close_securityViolation 5
983 #define Z_Close_protocolError 6
984 #define Z_Close_lackOfActivity 7
985 #define Z_Close_peerAbort 8
986 #define Z_Close_unspecified 9
987 char *diagnosticInformation; /* OPTIONAL */
988 Odr_oid *resourceReportFormat; /* OPTIONAL */
989 Odr_external *resourceReport; /* OPTIONAL */
991 Z_OtherInformation *otherInfo; /* OPTIONAL */
995 /* ------------------------ SEGMENTATION -------------------- */
997 typedef struct Z_Segment
999 Z_ReferenceId *referenceId; /* OPTIONAL */
1000 int *numberOfRecordsReturned;
1001 int num_segmentRecords;
1002 Z_NamePlusRecord **segmentRecords;
1003 Z_OtherInformation *otherInfo; /* OPTIONAL */
1007 /* ------------------------ APDU ---------------------------- */
1009 typedef struct Z_APDU
1014 Z_APDU_initResponse,
1015 Z_APDU_searchRequest,
1016 Z_APDU_searchResponse,
1017 Z_APDU_presentRequest,
1018 Z_APDU_presentResponse,
1019 Z_APDU_deleteResultSetRequest,
1020 Z_APDU_deleteResultSetResponse,
1021 Z_APDU_resourceControlRequest,
1022 Z_APDU_resourceControlResponse,
1023 Z_APDU_triggerResourceControlRequest,
1025 Z_APDU_scanResponse,
1026 Z_APDU_segmentRequest,
1031 Z_InitRequest *initRequest;
1032 Z_InitResponse *initResponse;
1033 Z_SearchRequest *searchRequest;
1034 Z_SearchResponse *searchResponse;
1035 Z_PresentRequest *presentRequest;
1036 Z_PresentResponse *presentResponse;
1037 Z_DeleteResultSetRequest *deleteResultSetRequest;
1038 Z_DeleteResultSetResponse *deleteResultSetResponse;
1039 Z_ResourceControlRequest *resourceControlRequest;
1040 Z_ResourceControlResponse *resourceControlResponse;
1041 Z_TriggerResourceControlRequest *triggerResourceControlRequest;
1042 Z_ScanRequest *scanRequest;
1043 Z_ScanResponse *scanResponse;
1044 Z_Segment *segmentRequest;
1049 int z_APDU(ODR o, Z_APDU **p, int opt);
1051 Z_InitRequest *zget_InitRequest(ODR o);
1052 Z_InitResponse *zget_InitResponse(ODR o);
1053 Z_SearchRequest *zget_SearchRequest(ODR o);
1054 Z_SearchResponse *zget_SearchResponse(ODR o);
1055 Z_PresentRequest *zget_PresentRequest(ODR o);
1056 Z_PresentResponse *zget_PresentResponse(ODR o);
1057 Z_DeleteResultSetRequest *zget_DeleteResultSetRequest(ODR o);
1058 Z_DeleteResultSetResponse *zget_DeleteResultSetResponse(ODR o);
1059 Z_ScanRequest *zget_ScanRequest(ODR o);
1060 Z_ScanResponse *zget_ScanResponse(ODR o);
1061 Z_TriggerResourceControlRequest *zget_TriggerResourceControlRequest(ODR o);
1062 Z_ResourceControlRequest *zget_ResourceControlRequest(ODR o);
1063 Z_ResourceControlResponse *zget_ResourceControlResponse(ODR o);
1064 Z_Close *zget_Close(ODR o);
1065 Z_APDU *zget_APDU(ODR o, enum Z_APDU_which which);
1067 #include <prt-rsc.h>
1068 #include <prt-acc.h>