File: oclc-ill-req-ext.c

package info (click to toggle)
yaz 3.0.34-2
  • links: PTS, VCS
  • area: main
  • in suites: lenny
  • size: 13,404 kB
  • ctags: 12,108
  • sloc: xml: 116,075; ansic: 52,205; sh: 9,746; tcl: 2,043; makefile: 1,141; yacc: 347
file content (63 lines) | stat: -rw-r--r-- 2,033 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
/** \file oclc-ill-req-ext.c
    \brief ASN.1 Module OCLCILLRequestExtension

    Generated automatically by YAZ ASN.1 Compiler 0.4
*/

#include <yaz/oclc-ill-req-ext.h>

int ill_OCLCILLRequestExtension (ODR o, ILL_OCLCILLRequestExtension **p, int opt, const char *name)
{
	if (!odr_sequence_begin (o, p, sizeof(**p), name))
		return odr_missing(o, opt, name) && odr_ok (o);
	return
		odr_explicit_tag (o, ill_String,
			&(*p)->clientDepartment, ODR_CONTEXT, 0, 1, "clientDepartment") &&
		odr_explicit_tag (o, ill_String,
			&(*p)->paymentMethod, ODR_CONTEXT, 1, 1, "paymentMethod") &&
		odr_explicit_tag (o, ill_String,
			&(*p)->uniformTitle, ODR_CONTEXT, 2, 1, "uniformTitle") &&
		odr_explicit_tag (o, ill_String,
			&(*p)->dissertation, ODR_CONTEXT, 3, 1, "dissertation") &&
		odr_explicit_tag (o, ill_String,
			&(*p)->issueNumber, ODR_CONTEXT, 4, 1, "issueNumber") &&
		odr_explicit_tag (o, ill_String,
			&(*p)->volume, ODR_CONTEXT, 5, 1, "volume") &&
		odr_explicit_tag (o, ill_String,
			&(*p)->affiliations, ODR_CONTEXT, 6, 1, "affiliations") &&
		odr_explicit_tag (o, ill_String,
			&(*p)->source, ODR_CONTEXT, 7, 1, "source") &&
		odr_sequence_end (o);
}

int ill_SystemNo_s (ODR o, ILL_SystemNo_s **p, int opt, const char *name)
{
	if (!odr_sequence_begin (o, p, sizeof(**p), name))
		return odr_missing(o, opt, name) && odr_ok (o);
	return
		ill_System(o, &(*p)->System, 0, "System") &&
		ill_RecordNo(o, &(*p)->recordNo, 0, "recordNo") &&
		odr_sequence_end (o);
}

int ill_SystemNo (ODR o, ILL_SystemNo **p, int opt, const char *name)
{
	if (!odr_initmember (o, p, sizeof(**p)))
		return odr_missing(o, opt, name);
	if (odr_sequence_of (o, (Odr_fun) ill_SystemNo_s, &(*p)->elements,
		&(*p)->num, name))
		return 1;
	if(o->direction == ODR_DECODE)
		*p = 0;
	return odr_missing(o, opt, name);
}

int ill_System (ODR o, ILL_System **p, int opt, const char *name)
{
	return odr_enum (o, p, opt, name);
}

int ill_RecordNo (ODR o, ILL_RecordNo **p, int opt, const char *name)
{
	return ill_String (o, p, opt, name);
}