Fixed bug in yaz_oi_update and added delete option.
[yaz-moved-to-github.git] / include / otherinfo.h
1 /*
2  * Copyright (c) 1999, Index Data
3  * See the file LICENSE for details.
4  * Sebastian Hammer, Adam Dickmeiss
5  *
6  * $Id: otherinfo.h,v 1.2 1999-09-13 12:51:35 adam Exp $
7  */
8 #ifndef OTHERINFO_H
9 #define OTHERINFO_H
10
11 #include <proto.h>
12
13 #ifdef __cplusplus
14 extern "C" {
15 #endif
16
17 YAZ_EXPORT void yaz_oi_APDU(Z_APDU *apdu, Z_OtherInformation ***oip);
18 YAZ_EXPORT    Z_OtherInformationUnit *yaz_oi_update (
19     Z_OtherInformation **otherInformationP, ODR odr,
20     int *oid, int categoryValue, int delete_flag);
21 YAZ_EXPORT void yaz_oi_set_string_oid (
22     Z_OtherInformation **otherInformation, ODR odr,
23     int *oid, int categoryValue,
24     const char *str);
25 YAZ_EXPORT void yaz_oi_set_string_oidval (
26     Z_OtherInformation **otherInformation, ODR odr,
27     int oidval, int categoryValue,
28     const char *str);
29 YAZ_EXPORT char *yaz_oi_get_string_oid (
30     Z_OtherInformation **otherInformation,
31     int *oid, int categoryValue, int delete_flag);
32 YAZ_EXPORT char *yaz_oi_get_string_oidval(
33     Z_OtherInformation **otherInformation,
34     int oidval, int categoryValue, int delete_flag);
35 #ifdef __cplusplus
36 }
37 #endif
38
39 #endif