X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=include%2Fprt.h;h=4f13dc9b69960aee33b13c6ffac48bb79d618eb3;hp=39ddc656a4ea052e7c154d998938a1b4e4418e30;hb=f2944c80ada3871faf8ec49bcad1470e6add4bac;hpb=923802efbd1b95c2349dbef298d0c650f21f95a2 diff --git a/include/prt.h b/include/prt.h index 39ddc65..4f13dc9 100644 --- a/include/prt.h +++ b/include/prt.h @@ -1,6 +1,6 @@ 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,7 +9,7 @@ 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); @@ -42,3 +42,6 @@ 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);