More explain stuff.
[yaz-moved-to-github.git] / include / prt.h
index 39ddc65..6158275 100644 (file)
@@ -1,6 +1,11 @@
+#ifndef PRT_H
+#define PRT_H
+
+#include <yconfig.h>
+
 int ber_boolean(ODR o, int *val);
 int ber_tag(ODR o, void *p, int class, int tag, int *constructed, int opt);
-int ber_enctag(unsigned char *buf, int class, int tag, int constructed, int len);
+int ber_enctag(ODR o, int class, int tag, int constructed);
 int ber_dectag(unsigned char *buf, int *class, int *tag, int *constructed);
 int odr_bool(ODR o, int **p, int opt);
 int odr_integer(ODR o, int **p, int opt);
@@ -9,11 +14,11 @@ int odr_implicit_settag(ODR o, int class, int tag);
 int odr_implicit(ODR o, int (*type)(ODR o, void *p, int opt), void *p,
     int class, int tag, int opt);
 #endif
-int ber_enclen(unsigned char *buf, int len, int lenlen, int exact);
+int ber_enclen(ODR o, int len, int lenlen, int exact);
 int ber_declen(unsigned char *buf, int *len);
 char *odr_indent(ODR o);
-int ber_null(ODR o, int *val);
-int odr_null(ODR o, int **p, int opt);
+int ber_null(ODR o);
+int odr_null(ODR o, Odr_null **p, int opt);
 int ber_integer(ODR o, int *val);
 int odr_constructed_begin(ODR o, void *p, int class, int tag);
 int odr_constructed_end(ODR o);
@@ -25,7 +30,7 @@ int odp_more_chunks(ODR o, unsigned char *base, int len);
 int odr_constructed_more(ODR o);
 int odr_bitstring(ODR o, Odr_bitmask **p, int opt);
 int ber_bitstring(ODR o, Odr_bitmask *p, int cons);
-int odr_visiblestring(ODR o, char **p, int opt);
+int odr_generalstring(ODR o, char **p, int opt);
 int ber_oidc(ODR o, Odr_oid *p);
 int odr_oid(ODR o, Odr_oid **p, int opt);
 int odr_choice(ODR o, Odr_arm arm[], void *p, void *whichp);
@@ -36,9 +41,15 @@ int ber_any(ODR o, Odr_any **p);
 int completeBER(unsigned char *buf, int len);
 void odr_begin(ODR o);
 void odr_end(ODR o);
-void odr_release_mem(struct odr_memblock *p);
-void odr_oidcpy(Odr_oid *t, Odr_oid *s);
-void odr_oidcat(Odr_oid *t, Odr_oid *s);
-int odr_oidcmp(Odr_oid *o1, Odr_oid *o2);
-int odr_oidlen(Odr_oid *o);
 Odr_oid *odr_oiddup(ODR odr, Odr_oid *o);
+int odr_grow_block(odr_ecblock *b, int min_bytes);
+int odr_write(ODR o, unsigned char *buf, int bytes);
+int odr_seek(ODR o, int whence, int offset);
+int odr_dumpBER(FILE *f, char *buf, int len);
+void odr_choice_bias(ODR o, int what);
+int odr_total(ODR o);
+char *odr_errmsg(int n);
+Odr_oid *odr_getoidbystr(ODR o, char *str);
+int odr_initmember(ODR o, void *p, int size);
+
+#endif