source: trunk/gsdl/packages/yaz/z39.50/z-rrf1.c@ 1343

Last change on this file since 1343 was 1343, checked in by johnmcp, 24 years ago

Added the YAZ toolkit source to the packages directory (for z39.50 stuff)

  • Property svn:keywords set to Author Date Id Revision
File size: 1.1 KB
Line 
1/* Generated automatically by the YAZ ASN.1 Compiler 0.3 */
2/* Module-C: ResourceReport-Format-Resource-1 */
3
4#include <yaz/z-rrf1.h>
5
6int z_ResourceReport1 (ODR o, Z_ResourceReport1 **p, int opt, const char *name)
7{
8 if (!odr_sequence_begin (o, p, sizeof(**p), name))
9 return opt && odr_ok (o);
10 return
11 odr_implicit_settag (o, ODR_CONTEXT, 1) &&
12 odr_sequence_of(o, (Odr_fun) z_Estimate1, &(*p)->estimates,
13 &(*p)->num_estimates, "estimates") &&
14 odr_implicit_tag (o, z_InternationalString,
15 &(*p)->message, ODR_CONTEXT, 2, 0, "message") &&
16 odr_sequence_end (o);
17}
18
19int z_Estimate1 (ODR o, Z_Estimate1 **p, int opt, const char *name)
20{
21 if (!odr_sequence_begin (o, p, sizeof(**p), name))
22 return opt && odr_ok (o);
23 return
24 odr_implicit_tag (o, z_EstimateType,
25 &(*p)->type, ODR_CONTEXT, 1, 0, "type") &&
26 odr_implicit_tag (o, odr_integer,
27 &(*p)->value, ODR_CONTEXT, 2, 0, "value") &&
28 odr_implicit_tag (o, odr_integer,
29 &(*p)->currency_code, ODR_CONTEXT, 3, 1, "currency_code") &&
30 odr_sequence_end (o);
31}
32
33int z_EstimateType (ODR o, Z_EstimateType **p, int opt, const char *name)
34{
35 return odr_integer (o, p, opt, name);
36}
Note: See TracBrowser for help on using the repository browser.