From: Adam Dickmeiss Date: Tue, 1 Jun 2010 09:26:07 +0000 (+0200) Subject: GFS example: set output_format X-Git-Tag: v4.0.10~13 X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=commitdiff_plain;h=e727aa6892bf8c0cb188c7a26506cd4805fea0c0 GFS example: set output_format --- 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); }