Adding access control
[yaz-moved-to-github.git] / asn / prt-rsc.c
index f3acf35..5b7eb17 100644 (file)
@@ -4,7 +4,10 @@
  * Sebastian Hammer, Adam Dickmeiss
  *
  * $Log: prt-rsc.c,v $
- * Revision 1.2  1995-06-01 14:34:53  quinn
+ * Revision 1.3  1995-06-02 09:49:15  quinn
+ * Adding access control
+ *
+ * Revision 1.2  1995/06/01  14:34:53  quinn
  * Work
  *
  * Revision 1.1  1995/06/01  11:22:17  quinn
@@ -17,7 +20,7 @@
 
 /* -------------------- Resource 1 ------------------------- */
 
-int z_Estimate1(ODR o, Z_Estimate1, int opt)
+int z_Estimate1(ODR o, Z_Estimate1 **p, int opt)
 {
     if (!odr_sequence_begin(o, p, sizeof(**p)))
        return opt && odr_ok(o);
@@ -25,7 +28,7 @@ int z_Estimate1(ODR o, Z_Estimate1, int opt)
        odr_implicit(o, odr_integer, &(*p)->type, ODR_CONTEXT, 1, 0) &&
        odr_implicit(o, odr_integer, &(*p)->value, ODR_CONTEXT, 2, 0) &&
        odr_implicit(o, odr_integer, &(*p)->currencyCode, ODR_CONTEXT, 3, 1) &&
-       odr_sequence-end(o);
+       odr_sequence_end(o);
 }
 
 int z_ResourceReport1(ODR o, Z_ResourceReport1 **p, int opt)
@@ -42,12 +45,15 @@ int z_ResourceReport1(ODR o, Z_ResourceReport1 **p, int opt)
 
 /* -------------------- Resource 2 ------------------------- */
 
+int z_StringOrNumeric(ODR, Z_StringOrNumeric **, int);
+int z_IntUnit(ODR, Z_IntUnit **, int);
+
 int z_Estimate2(ODR o, Z_Estimate2 **p, int opt)
 {
     if (!odr_sequence_begin(o, p, sizeof(**p)))
        return opt && odr_ok(o);
     return
-       odr_implicit(o, z_StringorNumeric, &(*p)->type, ODR_CONTEXT, 1, 0) &&
+       odr_explicit(o, z_StringOrNumeric, &(*p)->type, ODR_CONTEXT, 1, 0) &&
        odr_implicit(o, z_IntUnit, &(*p)->value, ODR_CONTEXT, 2, 0) &&
        odr_sequence_end(o);
 }