X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=include%2Foid.h;h=9bc9186d8fc7c357d004f55e979de8eb6001a34a;hp=f1357db75c157fef0b7e4527d0642732ae225892;hb=e1af980ed4466d784db2395ad5bdddadb8a24504;hpb=46ed30d0d83dd1b21e58a4db365a60aefaa5aad8 diff --git a/include/oid.h b/include/oid.h index f1357db..9bc9186 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,15 @@ * OF THIS SOFTWARE. * * $Log: oid.h,v $ - * Revision 1.23 1997-09-01 08:49:50 adam + * Revision 1.25 1998-02-10 15:31:52 adam + * Implemented date and time structure. Changed the Update Extended + * Service. + * + * 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. * @@ -106,7 +114,7 @@ extern "C" { #endif -#define OID_SIZE 100 +#define OID_SIZE 20 typedef enum oid_proto { @@ -195,7 +203,25 @@ typedef enum oid_value VAL_ESPEC1, VAL_SOIF, VAL_SEARCHRES1, - VAL_THESAURUS + VAL_THESAURUS, + VAL_CHARLANG, + VAL_USERINFO1, + VAL_MULTISRCH1, + VAL_MULTISRCH2, + VAL_DATETIME, + VAL_SQLRS, + VAL_PDF, + VAL_POSTSCRIPT, + VAL_HTML, + VAL_TIFF, + VAL_GIF, + VAL_JPEG, + VAL_PNG, + VAL_MPEG, + VAL_SGML, + VAL_TIFFB, + VAL_WAV, + VAL_UPDATEES } oid_value; typedef struct oident @@ -208,6 +234,7 @@ typedef struct oident } oident; 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);