remove deprecated v1 style function j2k_read_cod
[openjpeg.git] / libopenjpeg / bio.h
index d0a809c1138410ed6acc0033787ed4f20e357830..cb3f37deb6462cb0ac6cd77ff3169d66979138c0 100644 (file)
@@ -31,6 +31,9 @@
 
 #ifndef __BIO_H
 #define __BIO_H
+
+#include <stddef.h> /* ptrdiff_t */
+
 /** 
 @file bio.h
 @brief Implementation of an individual bit input-output (BIO)
@@ -64,7 +67,7 @@ typedef struct opj_bio {
 Create a new BIO handle 
 @return Returns a new BIO handle if successful, returns NULL otherwise
 */
-opj_bio_t* bio_create();
+opj_bio_t* bio_create(void);
 /**
 Destroy a previously created BIO handle
 @param bio BIO handle to destroy
@@ -75,7 +78,7 @@ Number of bytes written.
 @param bio BIO handle
 @return Returns the number of bytes written
 */
-int bio_numbytes(opj_bio_t *bio);
+ptrdiff_t bio_numbytes(opj_bio_t *bio);
 /**
 Init encoder
 @param bio BIO handle