Avoid redundant buffer copies for get_record
[yaz4j-moved-to-github.git] / src / main / native / zoom-extra.h
index 6d428a8..0792b9a 100644 (file)
@@ -3,9 +3,9 @@
 #include <yaz/zoom.h>
 struct CharStarByteArray
 {
-       char* data;
-       long length;
+       const char* data;
+       int length;
 };
-struct CharStarByteArray ZOOM_record_get_bytes(ZOOM_record rec, const char *type, int *len);
+struct CharStarByteArray ZOOM_record_get_bytes(ZOOM_record rec, const char *type);
 #endif