X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=include%2Fodr.h;h=bd0356f1741c04d6df2ffb1c8ae943b94326292f;hb=23cfa431fda52535722e4efdc3f462995937e863;hp=f74c2762979b625eb06912de4a71d6fd803baac1;hpb=46ed30d0d83dd1b21e58a4db365a60aefaa5aad8;p=yaz-moved-to-github.git diff --git a/include/odr.h b/include/odr.h index f74c276..bd0356f 100644 --- a/include/odr.h +++ b/include/odr.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 1995-1997, Index Data. + * Copyright (c) 1995-1998, 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,17 @@ * OF THIS SOFTWARE. * * $Log: odr.h,v $ - * Revision 1.23 1997-09-01 08:49:49 adam + * Revision 1.26 1998-03-20 17:29:20 adam + * Include of odr_use.h in odr.h. Added prototype for odr_enum. + * + * Revision 1.25 1998/02/11 11:53:33 adam + * Changed code so that it compiles as C++. + * + * Revision 1.24 1997/11/24 11:33:56 adam + * Using function odr_nullval() instead of global ODR_NULLVAL when + * appropriate. + * + * Revision 1.23 1997/09/01 08:49:49 adam * New windows NT/95 port using MSV5.0. To export DLL functions the * YAZ_EXPORT modifier was added. Defined in yconfig.h. * @@ -288,7 +298,7 @@ typedef struct odr Odr_ber_tag odr_ber_tag; } *ODR; -typedef int (*Odr_fun)(); +typedef int (*Odr_fun)(ODR, char **, int); typedef struct odr_arm { @@ -327,6 +337,7 @@ YAZ_EXPORT void odr_setbuf(ODR o, char *buf, int len, int can_grow); YAZ_EXPORT char *odr_getbuf(ODR o, int *len, int *size); YAZ_EXPORT void *odr_malloc(ODR o, int size); YAZ_EXPORT NMEM odr_extract_mem(ODR o); +YAZ_EXPORT Odr_null *odr_nullval(void); #define odr_release_mem(m) nmem_destroy(m) #define ODR_MEM NMEM @@ -401,6 +412,7 @@ YAZ_EXPORT NMEM odr_extract_mem(ODR o); } #endif +#include #include #include