X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=include%2Foid.h;h=fb8c58c9434c28f27bebff551197f16a3066b09e;hp=9bc9186d8fc7c357d004f55e979de8eb6001a34a;hb=742b23a913c14e0a4d39fa8f314300fea55c2352;hpb=fa86345c14168c451f8c76b71309b27230bfee44 diff --git a/include/oid.h b/include/oid.h index 9bc9186..fb8c58c 100644 --- a/include/oid.h +++ b/include/oid.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 1995-1997, Index Data. + * Copyright (c) 1995-1999, 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,29 @@ * OF THIS SOFTWARE. * * $Log: oid.h,v $ - * Revision 1.25 1998-02-10 15:31:52 adam + * Revision 1.31 1999-04-15 09:19:43 adam + * Added COOKIE UserInfo OID. + * + * Revision 1.30 1999/04/09 12:16:11 adam + * Added OtherInfo private OID proxy. + * + * Revision 1.29 1998/12/03 11:33:04 adam + * Added OID's for XML. + * + * Revision 1.28 1998/10/13 16:01:52 adam + * Implemented support for dynamic object identifiers. + * Function oid_getvalbyname now accepts raw OID's as well as traditional + * names. + * + * Revision 1.27 1998/05/18 13:06:58 adam + * Changed the way attribute sets are handled by the retriaval module. + * Extended Explain conversion / schema. + * Modified server and client to work with ASN.1 compiled protocol handlers. + * + * Revision 1.26 1998/03/20 14:46:06 adam + * Added UNIverse Resource Reports. + * + * Revision 1.25 1998/02/10 15:31:52 adam * Implemented date and time structure. Changed the Update Extended * Service. * @@ -118,6 +140,7 @@ extern "C" { typedef enum oid_proto { + PROTO_NOP=0, PROTO_Z3950, PROTO_SR, PROTO_GENERAL, @@ -126,6 +149,7 @@ typedef enum oid_proto typedef enum oid_class { + CLASS_NOP=0, CLASS_APPCTX, CLASS_ABSYN, CLASS_ATTSET, @@ -139,11 +163,13 @@ typedef enum oid_class CLASS_ELEMSPEC, CLASS_VARSET, CLASS_SCHEMA, - CLASS_TAGSET + CLASS_TAGSET, + CLASS_GENERAL } oid_class; typedef enum oid_value { + VAL_NOP=0, VAL_APDU, VAL_BER, VAL_BASIC_CTX, @@ -221,7 +247,16 @@ typedef enum oid_value VAL_SGML, VAL_TIFFB, VAL_WAV, - VAL_UPDATEES + VAL_UPDATEES, + VAL_TEXT_XML, + VAL_APPLICATION_XML, + VAL_UNIVERSE_REPORT, + VAL_PROXY, + VAL_COOKIE, +/* add new types here... */ + +/* VAL_DYNAMIC must have highest value */ + VAL_DYNAMIC } oid_value; typedef struct oident @@ -229,7 +264,7 @@ typedef struct oident oid_proto proto; oid_class oclass; oid_value value; - int oidsuffix[20]; + int oidsuffix[OID_SIZE]; char *desc; } oident; @@ -242,6 +277,8 @@ 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); +YAZ_EXPORT struct oident *oid_addent (int *oid, int proto, int oclass, + const char *desc, int value); #ifdef __cplusplus }