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.20 1995-08-10 08:54:35 quinn
30 * Revision 1.19 1995/06/19 12:38:28 quinn
31 * Reorganized include-files. Added small features.
33 * Revision 1.18 1995/06/16 13:16:05 quinn
34 * Fixed Defaultdiagformat.
36 * Revision 1.17 1995/06/15 15:42:05 quinn
39 * Revision 1.16 1995/06/15 07:45:06 quinn
42 * Revision 1.15 1995/06/14 15:26:43 quinn
43 * *** empty log message ***
45 * Revision 1.14 1995/06/07 14:42:34 quinn
48 * Revision 1.13 1995/06/07 14:36:47 quinn
51 * Revision 1.12 1995/06/05 10:53:13 quinn
54 * Revision 1.11 1995/06/02 09:49:47 quinn
57 * Revision 1.10 1995/05/29 08:11:34 quinn
58 * Moved oid from odr/asn to util.
60 * Revision 1.9 1995/05/22 11:31:25 quinn
63 * Revision 1.8 1995/05/17 08:41:35 quinn
64 * Added delete to proto & other little things.
65 * Relaying auth info to backend.
67 * Revision 1.7 1995/05/16 08:50:37 quinn
68 * License, documentation, and memory fixes
70 * Revision 1.6 1995/05/15 11:55:55 quinn
71 * Work on asynchronous activity.
73 * Revision 1.5 1995/04/17 11:28:18 quinn
76 * Revision 1.4 1995/04/10 10:22:47 quinn
79 * Revision 1.3 1995/03/30 12:18:09 quinn
82 * Revision 1.2 1995/03/30 10:26:48 quinn
83 * Added Term structure
85 * Revision 1.1 1995/03/30 09:39:42 quinn
86 * Moved .h files to include directory
88 * Revision 1.11 1995/03/30 09:08:44 quinn
89 * Added Resource control protocol
91 * Revision 1.10 1995/03/29 15:39:39 quinn
92 * Adding some resource control elements, and a null-check to getentbyoid
94 * Revision 1.9 1995/03/29 08:06:18 quinn
95 * Added a few v3 elements
97 * Revision 1.8 1995/03/22 10:12:49 quinn
98 * Added Z_PRES constants.
100 * Revision 1.7 1995/03/20 09:45:12 quinn
103 * Revision 1.5 1995/03/07 16:29:34 quinn
104 * Added authentication stuff.
106 * Revision 1.4 1995/03/07 10:13:00 quinn
107 * Added prototype for z_APDU()
109 * Revision 1.3 1995/02/14 11:54:23 quinn
112 * Revision 1.2 1995/02/09 15:51:40 quinn
115 * Revision 1.1 1995/02/06 16:44:48 quinn
116 * First hack at Z/SR protocol
126 #include <yaz-version.h>
129 * Because we didn't have time to put all of the extra v3 elements in here
130 * before the first applications were written, we have to place them
131 * in #ifdefs in places where they would break existing code. If you are
132 * developing new stuff, we urge you to leave them in, even if you don't
133 * intend to use any v3 features. When we are comfortable that the old
134 * apps have been updated, we'll remove the #ifdefs.
139 /* ----------------- GLOBAL AUXILIARY DEFS ----------------*/
141 typedef Odr_oct Z_ReferenceId;
142 typedef char Z_DatabaseName;
143 typedef char Z_ResultSetId;
144 typedef Odr_oct Z_ResultsetId;
146 typedef struct Z_InfoCategory
148 Odr_oid *categoryTypeId; /* OPTIONAL */
152 typedef struct Z_OtherInformationUnit
154 Z_InfoCategory *category; /* OPTIONAL */
157 Z_OtherInfo_characterInfo,
158 Z_OtherInfo_binaryInfo,
159 Z_OtherInfo_externallyDefinedInfo,
166 Odr_external *externallyDefinedInfo;
169 } Z_OtherInformationUnit;
171 typedef struct Z_OtherInformation
174 Z_OtherInformationUnit **list;
175 } Z_OtherInformation;
177 typedef struct Z_StringOrNumeric
181 Z_StringOrNumeric_string,
182 Z_StringOrNumeric_numeric
191 typedef struct Z_Unit
193 char *unitSystem; /* OPTIONAL */
194 Z_StringOrNumeric *unitType; /* OPTIONAL */
195 Z_StringOrNumeric *unit; /* OPTIONAL */
196 int *scaleFactor; /* OPTIONAL */
199 typedef struct Z_IntUnit
205 typedef Odr_oct Z_SUTRS;
207 /* ----------------- INIT SERVICE ----------------*/
211 char *groupId; /* OPTIONAL */
212 char *userId; /* OPTIONAL */
213 char *password; /* OPTIONAL */
216 typedef struct Z_IdAuthentication
220 Z_IdAuthentication_open,
221 Z_IdAuthentication_idPass,
222 Z_IdAuthentication_anonymous,
223 Z_IdAuthentication_other
232 } Z_IdAuthentication;
234 #define Z_ProtocolVersion_1 0
235 #define Z_ProtocolVersion_2 1
236 #define Z_ProtocolVersion_3 2
238 #define Z_Options_search 0
239 #define Z_Options_present 1
240 #define Z_Options_delSet 2
241 #define Z_Options_resourceReport 3
242 #define Z_Options_triggerResourceCtrl 4
243 #define Z_Options_resourceCtrl 5
244 #define Z_Options_accessCtrl 6
245 #define Z_Options_scan 7
246 #define Z_Options_sort 8
247 #define Z_Options_reserved 9
248 #define Z_Options_extendedServices 10
249 #define Z_Options_level_1Segmentation 11
250 #define Z_Options_level_2Segmentation 12
251 #define Z_Options_concurrentOperations 13
252 #define Z_Options_namedResultSets 14
254 typedef struct Z_InitRequest
256 Z_ReferenceId *referenceId; /* OPTIONAL */
257 Odr_bitmask *protocolVersion;
258 Odr_bitmask *options;
259 int *preferredMessageSize;
260 int *maximumRecordSize;
261 Z_IdAuthentication* idAuthentication; /* OPTIONAL */
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_InitResponse
273 Z_ReferenceId *referenceId; /* OPTIONAL */
274 Odr_bitmask *protocolVersion;
275 Odr_bitmask *options;
276 int *preferredMessageSize;
277 int *maximumRecordSize;
279 char *implementationId; /* OPTIONAL */
280 char *implementationName; /* OPTIONAL */
281 char *implementationVersion; /* OPTIONAL */
282 Odr_external *userInformationField; /* OPTIONAL */
284 Z_OtherInformation *otherInfo; /* OPTIONAL */
288 typedef struct Z_NSRAuthentication
293 } Z_NSRAuthentication;
295 int z_NSRAuthentication(ODR o, Z_NSRAuthentication **p, int opt);
297 int z_StrAuthentication(ODR o, char **p, int opt);
299 /* ------------------ SEARCH SERVICE ----------------*/
301 typedef struct Z_DatabaseSpecificUnit
304 char *elementSetName;
305 } Z_DatabaseSpecificUnit;
307 typedef struct Z_DatabaseSpecific
310 Z_DatabaseSpecificUnit **elements;
311 } Z_DatabaseSpecific;
313 typedef struct Z_ElementSetNames
316 #define Z_ElementSetNames_generic 0
317 #define Z_ElementSetNames_databaseSpecific 1
321 Z_DatabaseSpecific *databaseSpecific;
325 /* ---------------------- RPN QUERY --------------------------- */
327 typedef struct Z_ComplexAttribute
330 Z_StringOrNumeric **list;
331 int num_semanticAction;
332 int **semanticAction; /* OPTIONAL */
333 } Z_ComplexAttribute;
335 typedef struct Z_AttributeElement
338 Odr_oid *attributeSet; /* OPTIONAL - v3 only */
344 Z_AttributeValue_numeric,
345 Z_AttributeValue_complex
350 Z_ComplexAttribute *complex;
355 } Z_AttributeElement;
357 typedef struct Z_Term
363 Z_Term_characterString,
367 Z_Term_integerAndUnit,
372 Odr_oct *general; /* this is required for v2 */
374 char *characterString;
377 Odr_external *external;
378 /* Z_IntUnit *integerAndUnit; */
383 typedef struct Z_AttributesPlusTerm
386 Z_AttributeElement **attributeList;
388 } Z_AttributesPlusTerm;
390 typedef struct Z_ResultSetPlusAttributes
394 Z_AttributeElement **attributeList;
395 } Z_ResultSetPlusAttributes;
397 typedef struct Z_ProximityOperator
399 bool_t *exclusion; /* OPTIONAL */
403 #define Z_Prox_lessThan 1
404 #define Z_Prox_lessThanOrEqual 2
405 #define Z_Prox_equal 3
406 #define Z_Prox_greaterThanOrEqual 4
407 #define Z_Prox_greaterThan 5
408 #define Z_Prox_notEqual 6
414 int *proximityUnitCode;
415 #define Z_ProxUnit_character 1
416 #define Z_ProxUnit_word 2
417 #define Z_ProxUnit_sentence 3
418 #define Z_ProxUnit_paragraph 4
419 #define Z_ProxUnit_section 5
420 #define Z_ProxUnit_chapter 6
421 #define Z_ProxUnit_document 7
422 #define Z_ProxUnit_element 8
423 #define Z_ProxUnit_subelement 9
424 #define Z_ProxUnit_elementType 10
425 #define Z_ProxUnit_byte 11 /* v3 only */
426 } Z_ProximityOperator;
428 typedef struct Z_Operator
439 Odr_null *and; /* these guys are nulls. */
442 Z_ProximityOperator *prox;
446 typedef struct Z_Operand
451 Z_Operand_resultSetId,
452 Z_Operand_resultAttr /* v3 only */
456 Z_AttributesPlusTerm *attributesPlusTerm;
457 Z_ResultSetId *resultSetId;
458 Z_ResultSetPlusAttributes *resultAttr;
462 typedef struct Z_Complex
464 struct Z_RPNStructure *s1;
465 struct Z_RPNStructure *s2;
466 Z_Operator *operator;
469 typedef struct Z_RPNStructure
473 Z_RPNStructure_simple,
474 Z_RPNStructure_complex
483 typedef struct Z_RPNQuery
485 Odr_oid *attributeSetId;
486 Z_RPNStructure *RPNStructure;
489 /* -------------------------- SEARCHREQUEST -------------------------- */
491 typedef struct Z_Query
504 Z_RPNQuery *type_101;
508 typedef struct Z_SearchRequest
510 Z_ReferenceId *referenceId; /* OPTIONAL */
511 int *smallSetUpperBound;
512 int *largeSetLowerBound;
513 int *mediumSetPresentNumber;
514 bool_t *replaceIndicator;
516 int num_databaseNames;
517 char **databaseNames;
518 Z_ElementSetNames *smallSetElementSetNames; /* OPTIONAL */
519 Z_ElementSetNames *mediumSetElementSetNames; /* OPTIONAL */
520 Odr_oid *preferredRecordSyntax; /* OPTIONAL */
523 Z_OtherInformation *additionalSearchInfo; /* OPTIONAL */
524 Z_OtherInformation *otherInfo; /* OPTIONAL */
528 /* ------------------------ RECORD -------------------------- */
530 typedef Odr_external Z_DatabaseRecord;
534 typedef struct Z_DefaultDiagFormat
536 Odr_oid *diagnosticSetId; /* This is opt'l to interwork with bad targets */
538 /* until the whole character set issue becomes more definite,
539 * you can probably ignore this on input. */
542 Z_DiagForm_v2AddInfo,
546 } Z_DefaultDiagFormat;
548 typedef struct Z_DiagRec
552 Z_DiagRec_defaultFormat,
553 Z_DiagRec_externallyDefined
557 Z_DefaultDiagFormat *defaultFormat;
558 Odr_external *externallyDefined;
564 typedef struct Z_DiagRec
566 Odr_oid *diagnosticSetId; /* This is opt'l to interwork with bad targets */
573 typedef struct Z_DiagRecs
576 Z_DiagRec **diagRecs;
579 typedef struct Z_NamePlusRecord
581 char *databaseName; /* OPTIONAL */
584 Z_NamePlusRecord_databaseRecord,
585 Z_NamePlusRecord_surrogateDiagnostic
590 Z_DatabaseRecord *databaseRecord;
591 Z_DiagRec *surrogateDiagnostic;
595 typedef struct Z_NamePlusRecordList
598 Z_NamePlusRecord **records;
599 } Z_NamePlusRecordList;
601 typedef struct Z_Records
607 Z_Records_multipleNSD
611 Z_NamePlusRecordList *databaseOrSurDiagnostics;
612 Z_DiagRec *nonSurrogateDiagnostic;
613 Z_DiagRecs *multipleNonSurDiagnostics;
617 /* ------------------------ SEARCHRESPONSE ------------------ */
619 typedef struct Z_SearchResponse
621 Z_ReferenceId *referenceId; /* OPTIONAL */
623 int *numberOfRecordsReturned;
624 int *nextResultSetPosition;
625 bool_t *searchStatus;
626 int *resultSetStatus; /* OPTIONAL */
627 #define Z_RES_SUBSET 1
628 #define Z_RES_INTERIM 2
630 int *presentStatus; /* OPTIONAL */
631 #define Z_PRES_SUCCESS 0
632 #define Z_PRES_PARTIAL_1 1
633 #define Z_PRES_PARTIAL_2 2
634 #define Z_PRES_PARTIAL_3 3
635 #define Z_PRES_PARTIAL_4 4
636 #define Z_PRES_FAILURE 5
637 Z_Records *records; /* OPTIONAL */
639 Z_OtherInformation *additionalSearchInfo;
640 Z_OtherInformation *otherInfo;
644 /* ------------------------- PRESENT SERVICE -----------------*/
646 typedef struct Z_ElementSpec
650 Z_ElementSpec_elementSetName,
651 Z_ElementSpec_externalSpec
655 char *elementSetName;
656 Odr_external *externalSpec;
660 typedef struct Z_Specification
662 Odr_oid *schema; /* OPTIONAL */
663 Z_ElementSpec *elementSpec; /* OPTIONAL */
666 typedef struct Z_DbSpecific
669 Z_Specification *spec;
672 typedef struct Z_CompSpec
674 bool_t *selectAlternativeSyntax;
675 Z_Specification *generic; /* OPTIONAL */
677 Z_DbSpecific **dbSpecific; /* OPTIONAL */
678 int num_recordSyntax;
679 Odr_oid **recordSyntax; /* OPTIONAL */
682 typedef struct Z_RecordComposition
691 Z_ElementSetNames *simple;
694 } Z_RecordComposition;
696 typedef struct Z_Range
698 int *startingPosition;
699 int *numberOfRecords;
702 typedef struct Z_PresentRequest
704 Z_ReferenceId *referenceId; /* OPTIONAL */
705 Z_ResultSetId *resultSetId;
706 int *resultSetStartPoint;
707 int *numberOfRecordsRequested;
710 Z_Range **additionalRanges; /* OPTIONAL */
711 Z_RecordComposition *recordComposition; /* OPTIONAL */
713 Z_ElementSetNames *elementSetNames; /* OPTIONAL */
715 Odr_oid *preferredRecordSyntax; /* OPTIONAL */
717 int *maxSegmentCount; /* OPTIONAL */
718 int *maxRecordSize; /* OPTIONAL */
719 int *maxSegmentSize; /* OPTIONAL */
720 Z_OtherInformation *otherInfo; /* OPTIONAL */
724 typedef struct Z_PresentResponse
726 Z_ReferenceId *referenceId; /* OPTIONAL */
727 int *numberOfRecordsReturned;
728 int *nextResultSetPosition;
732 Z_OtherInformation *otherInfo; /* OPTIONAL */
736 /* ------------------ RESOURCE CONTROL ----------------*/
738 typedef struct Z_TriggerResourceControlRequest
740 Z_ReferenceId *referenceId; /* OPTIONAL */
741 int *requestedAction;
742 #define Z_TriggerResourceCtrl_resourceReport 1
743 #define Z_TriggerResourceCtrl_resourceControl 2
744 #define Z_TriggerResourceCtrl_cancel 3
745 Odr_oid *prefResourceReportFormat; /* OPTIONAL */
746 bool_t *resultSetWanted; /* OPTIONAL */
748 Z_OtherInformation *otherInfo;
750 } Z_TriggerResourceControlRequest;
752 typedef struct Z_ResourceControlRequest
754 Z_ReferenceId *referenceId; /* OPTIONAL */
755 bool_t *suspendedFlag; /* OPTIONAL */
756 Odr_external *resourceReport; /* OPTIONAL */
757 int *partialResultsAvailable; /* OPTIONAL */
758 #define Z_ResourceControlRequest_subset 1
759 #define Z_ResourceControlRequest_interim 2
760 #define Z_ResourceControlRequest_none 3
761 bool_t *responseRequired;
762 bool_t *triggeredRequestFlag; /* OPTIONAL */
764 Z_OtherInformation *otherInfo;
766 } Z_ResourceControlRequest;
768 typedef struct Z_ResourceControlResponse
770 Z_ReferenceId *referenceId; /* OPTIONAL */
771 bool_t *continueFlag;
772 bool_t *resultSetWanted; /* OPTIONAL */
774 Z_OtherInformation *otherInfo;
776 } Z_ResourceControlResponse;
779 /* ------------------ ACCESS CTRL SERVICE ----------------*/
781 typedef struct Z_AccessControlRequest
783 Z_ReferenceId *referenceId; /* OPTIONAL */
786 Z_AccessRequest_simpleForm,
787 Z_AccessRequest_externallyDefined
792 Odr_external *externallyDefined;
795 Z_OtherInformation *otherInfo; /* OPTIONAL */
797 } Z_AccessControlRequest;
799 typedef struct Z_AccessControlResponse
801 Z_ReferenceId *referenceId; /* OPTIONAL */
804 Z_AccessResponse_simpleForm,
805 Z_AccessResponse_externallyDefined
810 Odr_external *externallyDefined;
812 Z_DiagRec *diagnostic; /* OPTIONAL */
814 Z_OtherInformation *otherInfo; /* OPTIONAL */
816 } Z_AccessControlResponse;
818 /* ------------------------ SCAN SERVICE -------------------- */
820 typedef struct Z_AttributeList
823 Z_AttributeElement **attributes;
826 typedef struct Z_AlternativeTerm
829 Z_AttributesPlusTerm **terms;
832 typedef struct Z_OccurrenceByAttributes
834 Z_AttributeList *attributes;
846 /* Z_ByDatabase *byDatabase; */
849 } Z_OccurrenceByAttributes;
851 typedef struct Z_TermInfo
854 Z_AttributeList *suggestedAttributes; /* OPTIONAL */
855 Z_AlternativeTerm *alternativeTerm; /* OPTIONAL */
856 int *globalOccurrences; /* OPTIONAL */
857 Z_OccurrenceByAttributes *byAttributes; /* OPTIONAL */
860 typedef struct Z_Entry
865 Z_Entry_surrogateDiagnostic
869 Z_TermInfo *termInfo;
870 Z_DiagRec *surrogateDiagnostic;
874 typedef struct Z_Entries
880 typedef struct Z_ListEntries
884 Z_ListEntries_entries,
885 Z_ListEntries_nonSurrogateDiagnostics
890 Z_DiagRecs *nonSurrogateDiagnostics;
894 typedef struct Z_ScanRequest
896 Z_ReferenceId *referenceId; /* OPTIONAL */
897 int num_databaseNames;
898 char **databaseNames;
899 Odr_oid *attributeSet; /* OPTIONAL */
900 Z_AttributesPlusTerm *termListAndStartPoint;
901 int *stepSize; /* OPTIONAL */
902 int *numberOfTermsRequested;
903 int *preferredPositionInResponse; /* OPTIONAL */
905 Z_OtherInformation *otherInfo;
909 typedef struct Z_ScanResponse
911 Z_ReferenceId *referenceId; /* OPTIONAL */
912 int *stepSize; /* OPTIONAL */
914 #define Z_Scan_success 0
915 #define Z_Scan_partial_1 1
916 #define Z_Scan_partial_2 2
917 #define Z_Scan_partial_3 3
918 #define Z_Scan_partial_4 4
919 #define Z_Scan_partial_5 5
920 #define Z_Scan_failure 6
921 int *numberOfEntriesReturned;
922 int *positionOfTerm; /* OPTIONAL */
923 Z_ListEntries *entries; /* OPTIONAL */
924 Odr_oid *attributeSet; /* OPTIONAL */
926 Z_OtherInformation *otherInfo;
931 /* ------------------------ DELETE -------------------------- */
933 #define Z_DeleteStatus_success 0
934 #define Z_DeleteStatus_resultSetDidNotExist 1
935 #define Z_DeleteStatus_previouslyDeletedByTarget 2
936 #define Z_DeleteStatus_systemProblemAtTarget 3
937 #define Z_DeleteStatus_accessNotAllowed 4
938 #define Z_DeleteStatus_resourceControlAtOrigin 5
939 #define Z_DeleteStatus_resourceControlAtTarget 6
940 #define Z_DeleteStatus_bulkDeleteNotSupported 7
941 #define Z_DeleteStatus_notAllRsltSetsDeletedOnBulkDlte 8
942 #define Z_DeleteStatus_notAllRequestedResultSetsDeleted 9
943 #define Z_DeleteStatus_resultSetInUse 10
945 typedef struct Z_ListStatus
951 typedef struct Z_DeleteResultSetRequest
953 Z_ReferenceId *referenceId; /* OPTIONAL */
955 #define Z_DeleteRequest_list 0
956 #define Z_DeleteRequest_all 1
958 Z_ResultSetId **resultSetList; /* OPTIONAL */
960 Z_OtherInformation *otherInfo;
962 } Z_DeleteResultSetRequest;
964 typedef struct Z_DeleteResultSetResponse
966 Z_ReferenceId *referenceId; /* OPTIONAL */
967 int *deleteOperationStatus;
969 Z_ListStatus *deleteListStatuses; /* OPTIONAL */
970 int *numberNotDeleted; /* OPTIONAL */
971 int num_bulkStatuses;
972 Z_ListStatus *bulkStatuses; /* OPTIONAL */
973 char *deleteMessage; /* OPTIONAL */
975 Z_OtherInformation *otherInfo;
977 } Z_DeleteResultSetResponse;
979 /* ------------------------ CLOSE SERVICE ------------------- */
981 typedef struct Z_Close
983 Z_ReferenceId *referenceId; /* OPTIONAL */
985 #define Z_Close_finished 0
986 #define Z_Close_shutdown 1
987 #define Z_Close_systemProblem 2
988 #define Z_Close_costLimit 3
989 #define Z_Close_resources 4
990 #define Z_Close_securityViolation 5
991 #define Z_Close_protocolError 6
992 #define Z_Close_lackOfActivity 7
993 #define Z_Close_peerAbort 8
994 #define Z_Close_unspecified 9
995 char *diagnosticInformation; /* OPTIONAL */
996 Odr_oid *resourceReportFormat; /* OPTIONAL */
997 Odr_external *resourceReport; /* OPTIONAL */
999 Z_OtherInformation *otherInfo; /* OPTIONAL */
1003 /* ------------------------ SEGMENTATION -------------------- */
1005 typedef struct Z_Segment
1007 Z_ReferenceId *referenceId; /* OPTIONAL */
1008 int *numberOfRecordsReturned;
1009 int num_segmentRecords;
1010 Z_NamePlusRecord **segmentRecords;
1011 Z_OtherInformation *otherInfo; /* OPTIONAL */
1015 /* ------------------------ APDU ---------------------------- */
1017 typedef struct Z_APDU
1022 Z_APDU_initResponse,
1023 Z_APDU_searchRequest,
1024 Z_APDU_searchResponse,
1025 Z_APDU_presentRequest,
1026 Z_APDU_presentResponse,
1027 Z_APDU_deleteResultSetRequest,
1028 Z_APDU_deleteResultSetResponse,
1029 Z_APDU_resourceControlRequest,
1030 Z_APDU_resourceControlResponse,
1031 Z_APDU_triggerResourceControlRequest,
1033 Z_APDU_scanResponse,
1034 Z_APDU_segmentRequest,
1039 Z_InitRequest *initRequest;
1040 Z_InitResponse *initResponse;
1041 Z_SearchRequest *searchRequest;
1042 Z_SearchResponse *searchResponse;
1043 Z_PresentRequest *presentRequest;
1044 Z_PresentResponse *presentResponse;
1045 Z_DeleteResultSetRequest *deleteResultSetRequest;
1046 Z_DeleteResultSetResponse *deleteResultSetResponse;
1047 Z_ResourceControlRequest *resourceControlRequest;
1048 Z_ResourceControlResponse *resourceControlResponse;
1049 Z_TriggerResourceControlRequest *triggerResourceControlRequest;
1050 Z_ScanRequest *scanRequest;
1051 Z_ScanResponse *scanResponse;
1052 Z_Segment *segmentRequest;
1057 int z_APDU(ODR o, Z_APDU **p, int opt);
1058 int z_SUTRS(ODR o, Odr_oct **p, int opt);
1060 Z_InitRequest *zget_InitRequest(ODR o);
1061 Z_InitResponse *zget_InitResponse(ODR o);
1062 Z_SearchRequest *zget_SearchRequest(ODR o);
1063 Z_SearchResponse *zget_SearchResponse(ODR o);
1064 Z_PresentRequest *zget_PresentRequest(ODR o);
1065 Z_PresentResponse *zget_PresentResponse(ODR o);
1066 Z_DeleteResultSetRequest *zget_DeleteResultSetRequest(ODR o);
1067 Z_DeleteResultSetResponse *zget_DeleteResultSetResponse(ODR o);
1068 Z_ScanRequest *zget_ScanRequest(ODR o);
1069 Z_ScanResponse *zget_ScanResponse(ODR o);
1070 Z_TriggerResourceControlRequest *zget_TriggerResourceControlRequest(ODR o);
1071 Z_ResourceControlRequest *zget_ResourceControlRequest(ODR o);
1072 Z_ResourceControlResponse *zget_ResourceControlResponse(ODR o);
1073 Z_Close *zget_Close(ODR o);
1074 int z_InternationalString(ODR o, char **p, int opt);
1075 int z_OtherInformation(ODR o, Z_OtherInformation **p, int opt);
1076 int z_ElementSetName(ODR o, char **p, int opt);
1077 int z_IntUnit(ODR o, Z_IntUnit **p, int opt);
1078 int z_Unit(ODR o, Z_Unit **p, int opt);
1079 int z_DatabaseName(ODR o, Z_DatabaseName **p, int opt);
1080 int z_StringOrNumeric(ODR o, Z_StringOrNumeric **p, int opt);
1081 int z_OtherInformationUnit(ODR o, Z_OtherInformationUnit **p, int opt);
1082 int z_Term(ODR o, Z_Term **p, int opt);
1083 int z_Specification(ODR o, Z_Specification **p, int opt);
1084 Z_APDU *zget_APDU(ODR o, enum Z_APDU_which which);
1086 #include <prt-rsc.h>
1087 #include <prt-acc.h>