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.15 1995-06-14 15:26:43 quinn
28 * *** empty log message ***
30 * Revision 1.14 1995/06/07 14:42:34 quinn
33 * Revision 1.13 1995/06/07 14:36:47 quinn
36 * Revision 1.12 1995/06/05 10:53:13 quinn
39 * Revision 1.11 1995/06/02 09:49:47 quinn
42 * Revision 1.10 1995/05/29 08:11:34 quinn
43 * Moved oid from odr/asn to util.
45 * Revision 1.9 1995/05/22 11:31:25 quinn
48 * Revision 1.8 1995/05/17 08:41:35 quinn
49 * Added delete to proto & other little things.
50 * Relaying auth info to backend.
52 * Revision 1.7 1995/05/16 08:50:37 quinn
53 * License, documentation, and memory fixes
55 * Revision 1.6 1995/05/15 11:55:55 quinn
56 * Work on asynchronous activity.
58 * Revision 1.5 1995/04/17 11:28:18 quinn
61 * Revision 1.4 1995/04/10 10:22:47 quinn
64 * Revision 1.3 1995/03/30 12:18:09 quinn
67 * Revision 1.2 1995/03/30 10:26:48 quinn
68 * Added Term structure
70 * Revision 1.1 1995/03/30 09:39:42 quinn
71 * Moved .h files to include directory
73 * Revision 1.11 1995/03/30 09:08:44 quinn
74 * Added Resource control protocol
76 * Revision 1.10 1995/03/29 15:39:39 quinn
77 * Adding some resource control elements, and a null-check to getentbyoid
79 * Revision 1.9 1995/03/29 08:06:18 quinn
80 * Added a few v3 elements
82 * Revision 1.8 1995/03/22 10:12:49 quinn
83 * Added Z_PRES constants.
85 * Revision 1.7 1995/03/20 09:45:12 quinn
88 * Revision 1.5 1995/03/07 16:29:34 quinn
89 * Added authentication stuff.
91 * Revision 1.4 1995/03/07 10:13:00 quinn
92 * Added prototype for z_APDU()
94 * Revision 1.3 1995/02/14 11:54:23 quinn
97 * Revision 1.2 1995/02/09 15:51:40 quinn
100 * Revision 1.1 1995/02/06 16:44:48 quinn
101 * First hack at Z/SR protocol
111 #include <yaz-version.h>
114 * Because we didn't have time to put all of the extra v3 elements in here
115 * before the first applications were written, we have to place them
116 * in #ifdefs in places where they would break existing code. If you are
117 * developing new stuff, we urge you to leave them in, even if you don't
118 * intend to use any v3 features. When we are comfortable that the old
119 * apps have been updated, we'll remove the #ifdefs.
124 /* ----------------- GLOBAL AUXILIARY DEFS ----------------*/
126 typedef Odr_oct Z_ReferenceId;
127 typedef char Z_DatabaseName;
128 typedef char Z_ResultSetId;
129 typedef Odr_oct Z_ResultsetId;
131 typedef struct Z_InfoCategory
133 Odr_oid *categoryTypeId; /* OPTIONAL */
137 typedef struct Z_OtherInformationUnit
139 Z_InfoCategory *category; /* OPTIONAL */
142 Z_OtherInfo_characterInfo,
143 Z_OtherInfo_binaryInfo,
144 Z_OtherInfo_externallyDefinedInfo,
151 Odr_external *externallyDefinedInfo;
154 } Z_OtherInformationUnit;
156 typedef struct Z_OtherInformation
159 Z_OtherInformationUnit **list;
160 } Z_OtherInformation;
162 typedef struct Z_StringOrNumeric
166 Z_StringOrNumeric_string,
167 Z_StringOrNumeric_numeric
176 typedef struct Z_Unit
178 char *unitSystem; /* OPTIONAL */
179 Z_StringOrNumeric *unitType; /* OPTIONAL */
180 Z_StringOrNumeric *unit; /* OPTIONAL */
181 int *scaleFactor; /* OPTIONAL */
184 typedef struct Z_IntUnit
190 /* ----------------- INIT SERVICE ----------------*/
194 char *groupId; /* OPTIONAL */
195 char *userId; /* OPTIONAL */
196 char *password; /* OPTIONAL */
199 typedef struct Z_IdAuthentication
203 Z_IdAuthentication_open,
204 Z_IdAuthentication_idPass,
205 Z_IdAuthentication_anonymous,
206 Z_IdAuthentication_other
215 } Z_IdAuthentication;
217 #define Z_ProtocolVersion_1 0
218 #define Z_ProtocolVersion_2 1
219 #define Z_ProtocolVersion_3 2
221 #define Z_Options_search 0
222 #define Z_Options_present 1
223 #define Z_Options_delSet 2
224 #define Z_Options_resourceReport 3
225 #define Z_Options_triggerResourceCtrl 4
226 #define Z_Options_resourceCtrl 5
227 #define Z_Options_accessCtrl 6
228 #define Z_Options_scan 7
229 #define Z_Options_sort 8
230 #define Z_Options_reserved 9
231 #define Z_Options_extendedServices 10
232 #define Z_Options_level_1Segmentation 11
233 #define Z_Options_level_2Segmentation 12
234 #define Z_Options_concurrentOperations 13
235 #define Z_Options_namedResultSets 14
237 typedef struct Z_InitRequest
239 Z_ReferenceId *referenceId; /* OPTIONAL */
240 Odr_bitmask *protocolVersion;
241 Odr_bitmask *options;
242 int *preferredMessageSize;
243 int *maximumRecordSize;
244 Z_IdAuthentication* idAuthentication; /* OPTIONAL */
245 char *implementationId; /* OPTIONAL */
246 char *implementationName; /* OPTIONAL */
247 char *implementationVersion; /* OPTIONAL */
248 Odr_external *userInformationField; /* OPTIONAL */
250 Z_OtherInformation *otherInfo; /* OPTIONAL */
254 typedef struct Z_InitResponse
256 Z_ReferenceId *referenceId; /* OPTIONAL */
257 Odr_bitmask *protocolVersion;
258 Odr_bitmask *options;
259 int *preferredMessageSize;
260 int *maximumRecordSize;
262 char *implementationId; /* OPTIONAL */
263 char *implementationName; /* OPTIONAL */
264 char *implementationVersion; /* OPTIONAL */
265 Odr_external *userInformationField; /* OPTIONAL */
267 Z_OtherInformation *otherInfo; /* OPTIONAL */
271 typedef struct Z_NSRAuthentication
276 } Z_NSRAuthentication;
278 int z_NSRAuthentication(ODR o, Z_NSRAuthentication **p, int opt);
280 int z_StrAuthentication(ODR o, char **p, int opt);
282 /* ------------------ SEARCH SERVICE ----------------*/
284 typedef struct Z_DatabaseSpecificUnit
287 char *elementSetName;
288 } Z_DatabaseSpecificUnit;
290 typedef struct Z_DatabaseSpecific
293 Z_DatabaseSpecificUnit **elements;
294 } Z_DatabaseSpecific;
296 typedef struct Z_ElementSetNames
299 #define Z_ElementSetNames_generic 0
300 #define Z_ElementSetNames_databaseSpecific 1
304 Z_DatabaseSpecific *databaseSpecific;
308 /* ---------------------- RPN QUERY --------------------------- */
310 typedef struct Z_ComplexAttribute
313 Z_StringOrNumeric **list;
314 int num_semanticAction;
315 int **semanticAction; /* OPTIONAL */
316 } Z_ComplexAttribute;
318 typedef struct Z_AttributeElement
321 Odr_oid *attributeSet; /* OPTIONAL - v3 only */
327 Z_AttributeValue_numeric,
328 Z_AttributeValue_complex
333 Z_ComplexAttribute *complex;
338 } Z_AttributeElement;
342 typedef struct Z_Term
348 Z_Term_characterString,
352 Z_Term_integerAndUnit,
357 Odr_oct *general; /* this is required for v2 */
359 char *characterString;
362 Odr_external *external;
363 /* Z_IntUnit *integerAndUnit; */
370 typedef struct Z_AttributesPlusTerm
373 Z_AttributeElement **attributeList;
379 } Z_AttributesPlusTerm;
381 typedef struct Z_ResultSetPlusAttributes
385 Z_AttributeElement **attributeList;
386 } Z_ResultSetPlusAttributes;
388 typedef struct Z_ProximityOperator
390 bool_t *exclusion; /* OPTIONAL */
394 #define Z_Prox_lessThan 1
395 #define Z_Prox_lessThanOrEqual 2
396 #define Z_Prox_equal 3
397 #define Z_Prox_greaterThanOrEqual 4
398 #define Z_Prox_greaterThan 5
399 #define Z_Prox_notEqual 6
405 int *proximityUnitCode;
406 #define Z_ProxUnit_character 1
407 #define Z_ProxUnit_word 2
408 #define Z_ProxUnit_sentence 3
409 #define Z_ProxUnit_paragraph 4
410 #define Z_ProxUnit_section 5
411 #define Z_ProxUnit_chapter 6
412 #define Z_ProxUnit_document 7
413 #define Z_ProxUnit_element 8
414 #define Z_ProxUnit_subelement 9
415 #define Z_ProxUnit_elementType 10
416 #define Z_ProxUnit_byte 11 /* v3 only */
417 } Z_ProximityOperator;
419 typedef struct Z_Operator
430 Odr_null *and; /* these guys are nulls. */
433 Z_ProximityOperator *prox;
437 typedef struct Z_Operand
442 Z_Operand_resultSetId,
443 Z_Operand_resultAttr /* v3 only */
447 Z_AttributesPlusTerm *attributesPlusTerm;
448 Z_ResultSetId *resultSetId;
449 Z_ResultSetPlusAttributes *resultAttr;
453 typedef struct Z_Complex
455 struct Z_RPNStructure *s1;
456 struct Z_RPNStructure *s2;
457 Z_Operator *operator;
460 typedef struct Z_RPNStructure
464 Z_RPNStructure_simple,
465 Z_RPNStructure_complex
474 typedef struct Z_RPNQuery
476 Odr_oid *attributeSetId;
477 Z_RPNStructure *RPNStructure;
480 /* -------------------------- SEARCHREQUEST -------------------------- */
482 typedef struct Z_Query
495 Z_RPNQuery *type_101;
499 typedef struct Z_SearchRequest
501 Z_ReferenceId *referenceId; /* OPTIONAL */
502 int *smallSetUpperBound;
503 int *largeSetLowerBound;
504 int *mediumSetPresentNumber;
505 bool_t *replaceIndicator;
507 int num_databaseNames;
508 char **databaseNames;
509 Z_ElementSetNames *smallSetElementSetNames; /* OPTIONAL */
510 Z_ElementSetNames *mediumSetElementSetNames; /* OPTIONAL */
511 Odr_oid *preferredRecordSyntax; /* OPTIONAL */
514 Z_OtherInformation *additionalSearchInfo; /* OPTIONAL */
515 Z_OtherInformation *otherInfo; /* OPTIONAL */
519 /* ------------------------ RECORD -------------------------- */
521 typedef Odr_external Z_DatabaseRecord;
525 typedef struct Z_DefaultDiagFormat
527 Odr_oid *diagnosticSetId; /* This is opt'l to interwork with bad targets */
530 } Z_DefaultDiagFormat;
532 typedef struct Z_DiagRec
536 Z_DiagRec_defaultFormat,
537 Z_DiagRec_externallyDefined
541 Z_DefaultDiagFormat *defaultFormat;
542 Odr_external *externallyDefined;
548 typedef struct Z_DiagRec
550 Odr_oid *diagnosticSetId; /* This is opt'l to interwork with bad targets */
557 typedef struct Z_DiagRecList
563 typedef struct Z_NamePlusRecord
565 char *databaseName; /* OPTIONAL */
568 Z_NamePlusRecord_databaseRecord,
569 Z_NamePlusRecord_surrogateDiagnostic,
570 Z_NamePlusRecord_multipleNonSurDiagnostics
575 Z_DatabaseRecord *databaseRecord;
576 Z_DiagRec *surrogateDiagnostic;
577 Z_DiagRecList *multipleNonSurDiagnostics;
581 typedef struct Z_NamePlusRecordList
584 Z_NamePlusRecord **records;
585 } Z_NamePlusRecordList;
587 typedef struct Z_Records
593 Z_Records_multipleNSD
597 Z_NamePlusRecordList *databaseOrSurDiagnostics;
598 Z_DiagRec *nonSurrogateDiagnostic;
599 Z_DiagRecList *multipleNonSurDiagnostics;
603 /* ------------------------ SEARCHRESPONSE ------------------ */
605 typedef struct Z_SearchResponse
607 Z_ReferenceId *referenceId; /* OPTIONAL */
609 int *numberOfRecordsReturned;
610 int *nextResultSetPosition;
611 bool_t *searchStatus;
612 int *resultSetStatus; /* OPTIONAL */
613 #define Z_RES_SUBSET 1
614 #define Z_RES_INTERIM 2
616 int *presentStatus; /* OPTIONAL */
617 #define Z_PRES_SUCCESS 0
618 #define Z_PRES_PARTIAL_1 1
619 #define Z_PRES_PARTIAL_2 2
620 #define Z_PRES_PARTIAL_3 3
621 #define Z_PRES_PARTIAL_4 4
622 #define Z_PRES_FAILURE 5
623 Z_Records *records; /* OPTIONAL */
625 Z_OtherInformation *additionalSearchInfo;
626 Z_OtherInformation *otherInfo;
630 /* ------------------------- PRESENT SERVICE -----------------*/
632 typedef struct Z_ElementSpec
636 Z_ElementSpec_elementSetName,
637 Z_ElementSpec_externalSpec
641 char *elementSetName;
642 Odr_external *externalSpec;
646 typedef struct Z_Specification
648 Odr_oid *schema; /* OPTIONAL */
649 Z_ElementSpec *elementSpec; /* OPTIONAL */
652 typedef struct Z_DbSpecific
655 Z_Specification *spec;
658 typedef struct Z_CompSpec
660 bool_t *selectAlternativeSyntax;
661 Z_Specification *generic; /* OPTIONAL */
663 Z_DbSpecific **dbSpecific; /* OPTIONAL */
664 int num_recordSyntax;
665 Odr_oid **recordSyntax; /* OPTIONAL */
668 typedef struct Z_RecordComposition
677 Z_ElementSetNames *simple;
680 } Z_RecordComposition;
682 typedef struct Z_Range
684 int *startingPosition;
685 int *numberOfRecords;
688 typedef struct Z_PresentRequest
690 Z_ReferenceId *referenceId; /* OPTIONAL */
691 Z_ResultSetId *resultSetId;
692 int *resultSetStartPoint;
693 int *numberOfRecordsRequested;
696 Z_Range **additionalRanges; /* OPTIONAL */
697 Z_RecordComposition *recordComposition; /* OPTIONAL */
699 Z_ElementSetNames *elementSetNames; /* OPTIONAL */
701 Odr_oid *preferredRecordSyntax; /* OPTIONAL */
703 int *maxSegmentCount; /* OPTIONAL */
704 int *maxRecordSize; /* OPTIONAL */
705 int *maxSegmentSize; /* OPTIONAL */
706 Z_OtherInformation *otherInfo; /* OPTIONAL */
710 typedef struct Z_PresentResponse
712 Z_ReferenceId *referenceId; /* OPTIONAL */
713 int *numberOfRecordsReturned;
714 int *nextResultSetPosition;
718 Z_OtherInformation *otherInfo; /* OPTIONAL */
722 /* ------------------ RESOURCE CONTROL ----------------*/
724 typedef struct Z_TriggerResourceControlRequest
726 Z_ReferenceId *referenceId; /* OPTIONAL */
727 int *requestedAction;
728 #define Z_TriggerResourceCtrl_resourceReport 1
729 #define Z_TriggerResourceCtrl_resourceControl 2
730 #define Z_TriggerResourceCtrl_cancel 3
731 Odr_oid *prefResourceReportFormat; /* OPTIONAL */
732 bool_t *resultSetWanted; /* OPTIONAL */
733 } Z_TriggerResourceControlRequest;
735 typedef struct Z_ResourceControlRequest
737 Z_ReferenceId *referenceId; /* OPTIONAL */
738 bool_t *suspendedFlag; /* OPTIONAL */
739 Odr_external *resourceReport; /* OPTIONAL */
740 int *partialResultsAvailable; /* OPTIONAL */
741 #define Z_ResourceControlRequest_subset 1
742 #define Z_ResourceControlRequest_interim 2
743 #define Z_ResourceControlRequest_none 3
744 bool_t *responseRequired;
745 bool_t *triggeredRequestFlag; /* OPTIONAL */
746 } Z_ResourceControlRequest;
748 typedef struct Z_ResourceControlResponse
750 Z_ReferenceId *referenceId; /* OPTIONAL */
751 bool_t *continueFlag;
752 bool_t *resultSetWanted; /* OPTIONAL */
753 } Z_ResourceControlResponse;
756 /* ------------------ ACCESS CTRL SERVICE ----------------*/
758 typedef struct Z_AccessControlRequest
760 Z_ReferenceId *referenceId; /* OPTIONAL */
763 Z_AccessRequest_simpleForm,
764 Z_AccessRequest_externallyDefined
769 Odr_external *externallyDefined;
772 Z_OtherInformation *otherInfo; /* OPTIONAL */
774 } Z_AccessControlRequest;
776 typedef struct Z_AccessControlResponse
778 Z_ReferenceId *referenceId; /* OPTIONAL */
781 Z_AccessResponse_simpleForm,
782 Z_AccessResponse_externallyDefined
787 Odr_external *externallyDefined;
789 Z_DiagRec *diagnostic; /* OPTIONAL */
791 Z_OtherInformation *otherInfo; /* OPTIONAL */
793 } Z_AccessControlResponse;
795 /* ------------------------ SCAN SERVICE -------------------- */
797 typedef struct Z_AttributeList
800 Z_AttributeElement **attributes;
803 typedef struct Z_AlternativeTerm
806 Z_AttributesPlusTerm **terms;
809 typedef struct Z_OccurrenceByAttributes
811 Z_AttributeList *attributes;
823 /* Z_ByDatabase *byDatabase; */
826 } Z_OccurrenceByAttributes;
828 typedef struct Z_TermInfo
831 Z_AttributeList *suggestedAttributes; /* OPTIONAL */
832 Z_AlternativeTerm *alternativeTerm; /* OPTIONAL */
833 int *globalOccurrences; /* OPTIONAL */
834 Z_OccurrenceByAttributes *byAttributes; /* OPTIONAL */
837 typedef struct Z_Entry
842 Z_Entry_surrogateDiagnostic
846 Z_TermInfo *termInfo;
847 Z_DiagRec *surrogateDiagnostic;
851 typedef struct Z_Entries
857 typedef struct Z_DiagRecs
860 Z_DiagRec **diagRecs;
863 typedef struct Z_ListEntries
867 Z_ListEntries_entries,
868 Z_ListEntries_nonSurrogateDiagnostics
873 Z_DiagRecs *nonSurrogateDiagnostics;
877 typedef struct Z_ScanRequest
879 Z_ReferenceId *referenceId; /* OPTIONAL */
880 int num_databaseNames;
881 char **databaseNames;
882 Odr_oid *attributeSet; /* OPTIONAL */
883 Z_AttributesPlusTerm *termListAndStartPoint;
884 int *stepSize; /* OPTIONAL */
885 int *numberOfTermsRequested;
886 int *preferredPositionInResponse; /* OPTIONAL */
889 typedef struct Z_ScanResponse
891 Z_ReferenceId *referenceId; /* OPTIONAL */
892 int *stepSize; /* OPTIONAL */
894 #define Z_Scan_success 0
895 #define Z_Scan_partial_1 1
896 #define Z_Scan_partial_2 2
897 #define Z_Scan_partial_3 3
898 #define Z_Scan_partial_4 4
899 #define Z_Scan_partial_5 5
900 #define Z_Scan_failure 6
901 int *numberOfEntriesReturned;
902 int *positionOfTerm; /* OPTIONAL */
903 Z_ListEntries *entries; /* OPTIONAL */
904 Odr_oid *attributeSet; /* OPTIONAL */
908 /* ------------------------ DELETE -------------------------- */
910 #define Z_DeleteStatus_success 0
911 #define Z_DeleteStatus_resultSetDidNotExist 1
912 #define Z_DeleteStatus_previouslyDeletedByTarget 2
913 #define Z_DeleteStatus_systemProblemAtTarget 3
914 #define Z_DeleteStatus_accessNotAllowed 4
915 #define Z_DeleteStatus_resourceControlAtOrigin 5
916 #define Z_DeleteStatus_resourceControlAtTarget 6
917 #define Z_DeleteStatus_bulkDeleteNotSupported 7
918 #define Z_DeleteStatus_notAllRsltSetsDeletedOnBulkDlte 8
919 #define Z_DeleteStatus_notAllRequestedResultSetsDeleted 9
920 #define Z_DeleteStatus_resultSetInUse 10
922 typedef struct Z_ListStatus
928 typedef struct Z_DeleteResultSetRequest
930 Z_ReferenceId *referenceId; /* OPTIONAL */
932 #define Z_DeleteRequest_list 0
933 #define Z_DeleteRequest_all 1
935 Z_ResultSetId **resultSetList; /* OPTIONAL */
937 Z_OtherInformation *otherInfo;
939 } Z_DeleteResultSetRequest;
941 typedef struct Z_DeleteResultSetResponse
943 Z_ReferenceId *referenceId; /* OPTIONAL */
944 int *deleteOperationStatus;
946 Z_ListStatus *deleteListStatuses; /* OPTIONAL */
947 int *numberNotDeleted; /* OPTIONAL */
948 int num_bulkStatuses;
949 Z_ListStatus *bulkStatuses; /* OPTIONAL */
950 char *deleteMessage; /* OPTIONAL */
952 Z_OtherInformation *otherInfo;
954 } Z_DeleteResultSetResponse;
956 /* ------------------------ CLOSE SERVICE ------------------- */
958 typedef struct Z_Close
960 Z_ReferenceId *referenceId; /* OPTIONAL */
962 #define Z_Close_finished 0
963 #define Z_Close_shutdown 1
964 #define Z_Close_systemProblem 2
965 #define Z_Close_costLimit 3
966 #define Z_Close_resources 4
967 #define Z_Close_securityViolation 5
968 #define Z_Close_protocolError 6
969 #define Z_Close_lackOfActivity 7
970 #define Z_Close_peerAbort 8
971 #define Z_Close_unspecified 9
972 char *diagnosticInformation; /* OPTIONAL */
973 Odr_oid *resourceReportFormat; /* OPTIONAL */
974 Odr_external *resourceReport; /* OPTIONAL */
976 Z_OtherInformation *otherInfo; /* OPTIONAL */
980 /* ------------------------ SEGMENTATION -------------------- */
982 typedef struct Z_Segment
984 Z_ReferenceId *referenceid; /* OPTIONAL */
985 int *numberOfRecordsReturned;
986 Z_NamePlusRecord *segmentRecords;
987 Z_OtherInformation *otherInfo; /* OPTIONAL */
991 /* ------------------------ APDU ---------------------------- */
993 typedef struct Z_APDU
999 Z_APDU_searchRequest,
1000 Z_APDU_searchResponse,
1001 Z_APDU_presentRequest,
1002 Z_APDU_presentResponse,
1003 Z_APDU_deleteResultSetRequest,
1004 Z_APDU_deleteResultSetResponse,
1005 Z_APDU_resourceControlRequest,
1006 Z_APDU_resourceControlResponse,
1007 Z_APDU_triggerResourceControlRequest,
1009 Z_APDU_scanResponse,
1010 Z_APDU_segmentRequest,
1015 Z_InitRequest *initRequest;
1016 Z_InitResponse *initResponse;
1017 Z_SearchRequest *searchRequest;
1018 Z_SearchResponse *searchResponse;
1019 Z_PresentRequest *presentRequest;
1020 Z_PresentResponse *presentResponse;
1021 Z_DeleteResultSetRequest *deleteResultSetRequest;
1022 Z_DeleteResultSetResponse *deleteResultSetResponse;
1023 Z_ResourceControlRequest *resourceControlRequest;
1024 Z_ResourceControlResponse *resourceControlResponse;
1025 Z_TriggerResourceControlRequest *triggerResourceControlRequest;
1026 Z_ScanRequest *scanRequest;
1027 Z_ScanResponse *scanResponse;
1028 Z_Segment *segmentRequest;
1033 int z_APDU(ODR o, Z_APDU **p, int opt);
1035 Z_InitRequest *zget_InitRequest(ODR o);
1036 Z_InitResponse *zget_InitResponse(ODR o);
1037 Z_SearchRequest *zget_SearchRequest(ODR o);
1038 Z_SearchResponse *zget_SearchResponse(ODR o);
1039 Z_PresentRequest *zget_PresentRequest(ODR o);
1040 Z_PresentResponse *zget_PresentResponse(ODR o);
1041 Z_DeleteResultSetRequest *zget_DeleteResultSetRequest(ODR o);
1042 Z_DeleteResultSetResponse *zget_DeleteResultSetResponse(ODR o);
1043 Z_ScanRequest *zget_ScanRequest(ODR o);
1044 Z_ScanResponse *zget_ScanResponse(ODR o);
1045 Z_TriggerResourceControlRequest *zget_TriggerResourceControlRequest(ODR o);
1046 Z_ResourceControlRequest *zget_ResourceControlRequest(ODR o);
1047 Z_ResourceControlResponse *zget_ResourceControlResponse(ODR o);
1048 Z_Close *zget_Close(ODR o);
1049 Z_APDU *zget_APDU(ODR o, enum Z_APDU_which which);
1051 #include <prt-rsc.h>
1052 #include <prt-acc.h>