23 *oip = &apdu->
u.initRequest->otherInfo;
26 *oip = &apdu->
u.searchRequest->otherInfo;
29 *oip = &apdu->
u.presentRequest->otherInfo;
32 *oip = &apdu->
u.sortRequest->otherInfo;
35 *oip = &apdu->
u.scanRequest->otherInfo;
38 *oip = &apdu->
u.extendedServicesRequest->otherInfo;
41 *oip = &apdu->
u.deleteResultSetRequest->otherInfo;
44 *oip = &apdu->
u.initResponse->otherInfo;
47 *oip = &apdu->
u.searchResponse->otherInfo;
50 *oip = &apdu->
u.presentResponse->otherInfo;
53 *oip = &apdu->
u.sortResponse->otherInfo;
56 *oip = &apdu->
u.scanResponse->otherInfo;
59 *oip = &apdu->
u.extendedServicesResponse->otherInfo;
62 *oip = &apdu->
u.deleteResultSetResponse->otherInfo;
65 *oip = &apdu->
u.duplicateDetectionRequest->otherInfo;
68 *oip = &apdu->
u.duplicateDetectionResponse->otherInfo;
78 const Odr_oid *oid,
int categoryValue,
int delete_flag)
83 if (!otherInformationP)
85 otherInformation = *otherInformationP;
86 if (!otherInformation)
93 otherInformation->
list = 0;
101 return otherInformation->
list[i];
116 while (i < otherInformation->num_elements)
118 otherInformation->
list[i] =
119 otherInformation->
list[i+1];
135 newlist[i] = otherInformation->
list[i];
136 otherInformation->
list = newlist;
155 return otherInformation->
list[i];
161 const Odr_oid *oid,
int categoryValue,
174 const Odr_oid *oid,
int categoryValue,
int delete_flag)
178 if ((oi =
yaz_oi_update(otherInformation, 0, oid, categoryValue,
Odr_int * odr_intdup(ODR o, Odr_int v)
void * odr_malloc(ODR o, size_t size)
char * odr_strdup(ODR o, const char *str)
Odr_oid * odr_oiddup(ODR odr, const Odr_oid *o)
int oid_oidcmp(const Odr_oid *o1, const Odr_oid *o2)
compares OIDs
void yaz_oi_APDU(Z_APDU *apdu, Z_OtherInformation ***oip)
void yaz_oi_set_string_oid(Z_OtherInformation **otherInformation, ODR odr, const Odr_oid *oid, int categoryValue, const char *str)
Z_OtherInformationUnit * yaz_oi_update(Z_OtherInformation **otherInformationP, ODR odr, const Odr_oid *oid, int categoryValue, int delete_flag)
char * yaz_oi_get_string_oid(Z_OtherInformation **otherInformation, const Odr_oid *oid, int categoryValue, int delete_flag)
Header for Z39.50 OtherInfo utilities.
union Z_APDU::@242330271034040234371206353022055242311263114206 u
#define Z_APDU_initRequest
#define Z_APDU_scanRequest
#define Z_APDU_presentResponse
#define Z_APDU_sortResponse
#define Z_APDU_presentRequest
#define Z_APDU_duplicateDetectionResponse
#define Z_APDU_extendedServicesResponse
#define Z_APDU_searchRequest
#define Z_APDU_deleteResultSetResponse
#define Z_APDU_initResponse
#define Z_APDU_duplicateDetectionRequest
#define Z_OtherInfo_characterInfo
#define Z_APDU_scanResponse
#define Z_APDU_sortRequest
#define Z_APDU_deleteResultSetRequest
#define Z_APDU_searchResponse
#define Z_APDU_extendedServicesRequest