projects
/
yaz-moved-to-github.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6cdb773
)
GFS example: set output_format
author
Adam Dickmeiss
<adam@indexdata.dk>
Tue, 1 Jun 2010 09:26:07 +0000
(11:26 +0200)
committer
Adam Dickmeiss
<adam@indexdata.dk>
Tue, 1 Jun 2010 09:26:07 +0000
(11:26 +0200)
ztest/gfs-example.c
patch
|
blob
|
history
diff --git
a/ztest/gfs-example.c
b/ztest/gfs-example.c
index
6a4f446
..
6102bdf
100644
(file)
--- 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), "<record>%d</record>\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);
}