Goodbye to Odr_oct.size
[yaz-moved-to-github.git] / include / yaz / odr.h
index 3f3c9f0..865e4d4 100644 (file)
@@ -96,15 +96,10 @@ typedef nmem_bool_t Odr_bool;
 #define ODR_ENCODE      1
 #define ODR_PRINT       2
 
-#define OCT_SIZE 0
-
 typedef struct odr_oct
 {
     char *buf;
     int len;
-#if OCT_SIZE
-    int size;
-#endif
 } Odr_oct;
 
 typedef void Odr_null;
@@ -287,7 +282,7 @@ YAZ_EXPORT void odr_end(ODR o);
 YAZ_EXPORT Odr_oid *odr_oiddup(ODR odr, const Odr_oid *o);
 YAZ_EXPORT Odr_oid *odr_oiddup_nmem(NMEM nmem, const Odr_oid *o);
 YAZ_EXPORT int odr_grow_block(ODR b, int min_bytes);
-YAZ_EXPORT int odr_write2(ODR o, const char *buf, int bytes);
+YAZ_EXPORT int odr_write(ODR o, const char *buf, int bytes);
 YAZ_EXPORT int odr_seek(ODR o, int whence, int offset);
 YAZ_EXPORT int odr_dumpBER(FILE *f, const char *buf, int len);
 YAZ_EXPORT void odr_choice_bias(ODR o, int what);