YAZ  5.1.1
z-estask.c
Go to the documentation of this file.
1 
6 #if HAVE_CONFIG_H
7 #include <config.h>
8 #endif
9 
10 #include <yaz/z-estask.h>
11 
12 int z_TaskPackage(ODR o, Z_TaskPackage **p, int opt, const char *name)
13 {
14  if (!odr_sequence_begin(o, p, sizeof(**p), name))
15  return odr_missing(o, opt, name) && odr_ok (o);
16  return
18  &(*p)->packageType, ODR_CONTEXT, 1, 0, "packageType") &&
20  &(*p)->packageName, ODR_CONTEXT, 2, 1, "packageName") &&
22  &(*p)->userId, ODR_CONTEXT, 3, 1, "userId") &&
24  &(*p)->retentionTime, ODR_CONTEXT, 4, 1, "retentionTime") &&
26  &(*p)->permissions, ODR_CONTEXT, 5, 1, "permissions") &&
28  &(*p)->description, ODR_CONTEXT, 6, 1, "description") &&
30  &(*p)->targetReference, ODR_CONTEXT, 7, 1, "targetReference") &&
32  &(*p)->creationDateTime, ODR_CONTEXT, 8, 1, "creationDateTime") &&
34  &(*p)->taskStatus, ODR_CONTEXT, 9, 0, "taskStatus") &&
36  (odr_sequence_of(o, (Odr_fun) z_DiagRec, &(*p)->packageDiagnostics,
37  &(*p)->num_packageDiagnostics, "packageDiagnostics") || odr_ok(o)) &&
39  &(*p)->taskSpecificParameters, ODR_CONTEXT, 11, 0, "taskSpecificParameters") &&
41 }
#define odr_ok(o)
Definition: odr.h:215
#define odr_implicit_tag(o, t, p, cl, tg, opt, name)
Definition: odr.h:192
int odr_sequence_begin(ODR o, void *p, int size, const char *name)
Definition: odr_seq.c:15
int(* Odr_fun)(ODR, char **, int, const char *)
Definition: odr.h:135
char * name
Definition: initopt.c:18
int z_External(ODR o, Z_External **p, int opt, const char *name)
codec for BER EXTERNAL
Definition: prt-ext.c:95
int odr_integer(ODR o, Odr_int **p, int opt, const char *name)
Definition: odr_int.c:19
int z_Permissions(ODR o, Z_Permissions **p, int opt, const char *name)
Definition: z-core.c:1335
ASN.1 Module RecordSyntax-ESTaskPackage.
int z_TaskPackage(ODR o, Z_TaskPackage **p, int opt, const char *name)
Definition: z-estask.c:12
int odr_sequence_of(ODR o, Odr_fun type, void *p, int *num, const char *name)
Definition: odr_seq.c:134
int z_DiagRec(ODR o, Z_DiagRec **p, int opt, const char *name)
Definition: z-core.c:637
int odr_missing(ODR o, int opt, const char *name)
Definition: odr_util.c:82
Definition: odr.h:124
int odr_sequence_end(ODR o)
Definition: odr_seq.c:61
int opt
Definition: initopt.c:19
int odr_oid(ODR o, Odr_oid **p, int opt, const char *name)
Definition: odr_oid.c:20
int z_InternationalString(ODR o, Z_InternationalString **p, int opt, const char *name)
Definition: z-core.c:1598
int odr_octetstring(ODR o, Odr_oct **p, int opt, const char *name)
Definition: odr_oct.c:19
int odr_generalizedtime(ODR o, char **p, int opt, const char *name)
Definition: odr_use.c:63
#define ODR_CONTEXT
Definition: odr.h:67
int z_IntUnit(ODR o, Z_IntUnit **p, int opt, const char *name)
Definition: z-core.c:1570
int odr_implicit_settag(ODR o, int zclass, int tag)
Definition: odr_tag.c:32