X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=include%2Fprt.h;h=ed79b419e43a68e1b499bb55034109f5717908b3;hb=0d9eca26da6a9369bb00efd75a9472380526f547;hp=89ca6e0cd7290ff3586235501185fdc9fc5049f8;hpb=068a5a7412f492019b4d6f5e89158098d44368f7;p=yaz-moved-to-github.git diff --git a/include/prt.h b/include/prt.h index 89ca6e0..ed79b41 100644 --- a/include/prt.h +++ b/include/prt.h @@ -1,10 +1,19 @@ /* - * Copyright (c) 1995-1997, Index Data + * Copyright (c) 1995-1998, Index Data * See the file LICENSE for details. * Sebastian Hammer, Adam Dickmeiss * * $Log: prt.h,v $ - * Revision 1.21 1997-10-31 12:20:08 adam + * Revision 1.24 1998-03-20 17:29:20 adam + * Include of odr_use.h in odr.h. Added prototype for odr_enum. + * + * Revision 1.23 1998/03/20 14:45:27 adam + * Implemented odr_set_of and odr_enum. + * + * Revision 1.22 1998/02/11 11:53:34 adam + * Changed code so that it compiles as C++. + * + * Revision 1.21 1997/10/31 12:20:08 adam * Improved memory debugging for xmalloc/nmem.c. References to NMEM * instead of ODR in n ESPEC-1 handling in source d1_espec.c. * Bug fix: missing fclose in data1_read_espec1. @@ -26,11 +35,8 @@ YAZ_EXPORT int ber_enctag(ODR o, int zclass, int tag, int constructed); YAZ_EXPORT int ber_dectag(unsigned char *buf, int *zclass, int *tag, int *constructed); YAZ_EXPORT int odr_bool(ODR o, int **p, int opt); YAZ_EXPORT int odr_integer(ODR o, int **p, int opt); +YAZ_EXPORT int odr_enum(ODR o, int **p, int opt); YAZ_EXPORT int odr_implicit_settag(ODR o, int zclass, int tag); -#if 0 -YAZ_EXPORT int odr_implicit(ODR o, int (*type)(ODR o, void *p, int opt), void *p, - int zclass, int tag, int opt); -#endif YAZ_EXPORT int ber_enclen(ODR o, int len, int lenlen, int exact); YAZ_EXPORT int ber_declen(unsigned char *buf, int *len); YAZ_EXPORT char *odr_indent(ODR o); @@ -40,7 +46,9 @@ YAZ_EXPORT int ber_integer(ODR o, int *val); YAZ_EXPORT int odr_constructed_begin(ODR o, void *p, int zclass, int tag); YAZ_EXPORT int odr_constructed_end(ODR o); YAZ_EXPORT int odr_sequence_begin(ODR o, void *p, int size); +YAZ_EXPORT int odr_set_begin(ODR o, void *p, int size); YAZ_EXPORT int odr_sequence_end(ODR o); +YAZ_EXPORT int odr_set_end(ODR o); YAZ_EXPORT int ber_octetstring(ODR o, Odr_oct *p, int cons); YAZ_EXPORT int odr_octetstring(ODR o, Odr_oct **p, int opt); YAZ_EXPORT int odp_more_chunks(ODR o, unsigned char *base, int len); @@ -53,6 +61,7 @@ YAZ_EXPORT int odr_oid(ODR o, Odr_oid **p, int opt); YAZ_EXPORT int odr_choice(ODR o, Odr_arm arm[], void *p, void *whichp); YAZ_EXPORT int odr_cstring(ODR o, char **p, int opt); YAZ_EXPORT int odr_sequence_of(ODR o, Odr_fun type, void *p, int *num); +YAZ_EXPORT int odr_set_of(ODR o, Odr_fun type, void *p, int *num); YAZ_EXPORT int odr_any(ODR o, Odr_any **p, int opt); YAZ_EXPORT int ber_any(ODR o, Odr_any **p); YAZ_EXPORT int completeBER(unsigned char *buf, int len);