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,
char * odr_strdup(ODR o, const char *str)
Odr_int * odr_intdup(ODR o, Odr_int v)
void * odr_malloc(ODR o, size_t size)
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)
Z_OtherInformationUnit * yaz_oi_update(Z_OtherInformation **otherInformationP, ODR odr, const Odr_oid *oid, int categoryValue, int delete_flag)
void yaz_oi_set_string_oid(Z_OtherInformation **otherInformation, ODR odr, const Odr_oid *oid, int categoryValue, const char *str)
char * yaz_oi_get_string_oid(Z_OtherInformation **otherInformation, const Odr_oid *oid, int categoryValue, int delete_flag)
Header for Z39.50 OtherInfo utilities.
Z_InitRequest * initRequest
Z_DeleteResultSetRequest * deleteResultSetRequest
Z_ScanResponse * scanResponse
Z_DuplicateDetectionResponse * duplicateDetectionResponse
Z_DeleteResultSetResponse * deleteResultSetResponse
Z_InitResponse * initResponse
Z_DuplicateDetectionRequest * duplicateDetectionRequest
Z_ExtendedServicesResponse * extendedServicesResponse
Z_ScanRequest * scanRequest
Z_SearchResponse * searchResponse
Z_PresentResponse * presentResponse
Z_ExtendedServicesRequest * extendedServicesRequest
Z_SortRequest * sortRequest
Z_SearchRequest * searchRequest
Z_SortResponse * sortResponse
Z_PresentRequest * presentRequest
Z_OtherInformation * otherInfo
Z_OtherInformation * otherInfo
Z_OtherInformation * otherInfo
Z_OtherInformation * otherInfo
Z_OtherInformation * otherInfo
Z_OtherInformation * otherInfo
Z_OtherInformation * otherInfo
Z_OtherInformation * otherInfo
Z_OtherInformation * otherInfo
Z_OtherInformation * otherInfo
Z_OtherInformation * otherInfo
Z_OtherInformation * otherInfo
Z_OtherInformation * otherInfo
Z_OtherInformation * otherInfo
Z_OtherInformation * otherInfo
Z_OtherInformation * otherInfo
#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