X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=include%2Fyaz%2Fodr.h;h=3dd14780acf165588cf1ec28b1e5261dd8db2801;hp=1a2e690cf760758677f882f595d2a964ab3ed16c;hb=0a7d4354288c747883261e9f430a7e0069225a5b;hpb=93027bf060203898f33d1425585303945e58acbd diff --git a/include/yaz/odr.h b/include/yaz/odr.h index 1a2e690..3dd1478 100644 --- a/include/yaz/odr.h +++ b/include/yaz/odr.h @@ -23,7 +23,7 @@ * LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE * OF THIS SOFTWARE. * - * $Id: odr.h,v 1.14 2003-11-26 16:24:04 mike Exp $ + * $Id: odr.h,v 1.15 2004-08-11 12:15:38 adam Exp $ */ #ifndef ODR_H @@ -143,7 +143,7 @@ typedef struct odr int choice_bias; /* force choice */ int lenlen; /* force length-of-lenght (odr_setlen()) */ - FILE *print; /* output file for direction print */ + FILE *print; /* output file handler for direction print */ int indent; /* current indent level for printing */ NMEM mem; /* memory handle for decoding (primarily) */ @@ -327,6 +327,13 @@ YAZ_EXPORT int odr_generalizedtime(ODR o, char **p, int opt, YAZ_EXPORT int odr_set_charset(ODR o, const char *to, const char *from); +YAZ_EXPORT void odr_set_stream(ODR o, void *handle, + void (*stream_puts)(void *handle, + const char *strz), + void (*stream_close)(void *handle)); + +YAZ_EXPORT void odr_printf(ODR o, const char *fmt, ...); + YAZ_END_CDECL #include