From e727aa6892bf8c0cb188c7a26506cd4805fea0c0 Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Tue, 1 Jun 2010 11:26:07 +0200 Subject: [PATCH] GFS example: set output_format --- ztest/gfs-example.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ztest/gfs-example.c b/ztest/gfs-example.c index 6a4f446..6102bdf 100644 --- a/ztest/gfs-example.c +++ b/ztest/gfs-example.c @@ -52,7 +52,8 @@ static int my_fetch(void *handle, bend_fetch_rr *r) { char buf[40]; yaz_snprintf(buf, sizeof(buf), "%d\n", r->number); - + + r->output_format = odr_oiddup(r->stream, yaz_oid_recsyn_xml); r->record = odr_strdup(r->stream, buf); r->len = strlen(r->record); } -- 1.7.10.4