X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=include%2Foid.h;h=eab0ca7b1ff5510080feedda04ba8d1be3aa2c40;hp=bb60417e32013fbaec1702304de2ec51f85d8bbb;hb=79bf9f1b8b224b6b7323b280fca704591ac17324;hpb=1d441010a7487ea43798e61ef8a1e58bcba44c10 diff --git a/include/oid.h b/include/oid.h index bb60417..eab0ca7 100644 --- a/include/oid.h +++ b/include/oid.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 1995, Index Data. + * Copyright (c) 1995-1997, Index Data. * * Permission to use, copy, modify, distribute, and sell this software and * its documentation, in whole or in part, for any purpose, is hereby granted, @@ -24,7 +24,18 @@ * OF THIS SOFTWARE. * * $Log: oid.h,v $ - * Revision 1.21 1997-08-19 08:43:49 quinn + * Revision 1.24 1997-09-29 13:18:59 adam + * Added function, oid_ent_to_oid, to replace the function + * oid_getoidbyent, which is not thread safe. + * + * Revision 1.23 1997/09/01 08:49:50 adam + * New windows NT/95 port using MSV5.0. To export DLL functions the + * YAZ_EXPORT modifier was added. Defined in yconfig.h. + * + * Revision 1.22 1997/08/19 08:45:13 quinn + * Added Thesaurus + * + * Revision 1.21 1997/08/19 08:43:49 quinn * Housekeeping * * Revision 1.19 1997/07/28 12:34:42 adam @@ -99,7 +110,7 @@ extern "C" { #endif -#define OID_SIZE 100 +#define OID_SIZE 20 typedef enum oid_proto { @@ -187,7 +198,8 @@ typedef enum oid_value VAL_VAR1, VAL_ESPEC1, VAL_SOIF, - VAL_SEARCHRES1 + VAL_SEARCHRES1, + VAL_THESAURUS } oid_value; typedef struct oident @@ -199,14 +211,15 @@ typedef struct oident char *desc; } oident; -int *oid_getoidbyent(struct oident *ent); -struct oident *oid_getentbyoid(int *o); -void oid_oidcpy(int *t, int *s); -void oid_oidcat(int *t, int *s); -int oid_oidcmp(int *o1, int *o2); -int oid_oidlen(int *o); -oid_value oid_getvalbyname(const char *name); -void oid_setprivateoids(oident *list); +YAZ_EXPORT int *oid_getoidbyent(struct oident *ent); +YAZ_EXPORT int *oid_ent_to_oid(struct oident *ent, int *dst); +YAZ_EXPORT struct oident *oid_getentbyoid(int *o); +YAZ_EXPORT void oid_oidcpy(int *t, int *s); +YAZ_EXPORT void oid_oidcat(int *t, int *s); +YAZ_EXPORT int oid_oidcmp(int *o1, int *o2); +YAZ_EXPORT int oid_oidlen(int *o); +YAZ_EXPORT oid_value oid_getvalbyname(const char *name); +YAZ_EXPORT void oid_setprivateoids(oident *list); #ifdef __cplusplus }