]> sigrok.org Git - libsigrok.git/blobdiff - sigrok-internal.h
sr: Consistently use 512kB as default chunk size.
[libsigrok.git] / sigrok-internal.h
index f78be464fd76a071225ae4ff3dd63ddfae06d715..4ea5d475c39d87973ced6c864b44961d9f0228fb 100644 (file)
@@ -34,7 +34,7 @@
 #endif
 
 /* Size of a datastore chunk in units */
-#define DATASTORE_CHUNKSIZE 512000
+#define DATASTORE_CHUNKSIZE (512 * 1024)
 
 /*--- hwplugin.c ------------------------------------------------------------*/
 
@@ -66,7 +66,7 @@ int serial_set_params(int fd, int speed, int bits, int parity, int stopbits,
 
 #ifdef HAVE_LIBUSB_1_0
 int ezusb_reset(struct libusb_device_handle *hdl, int set_clear);
-int ezusb_install_firmware(libusb_device_handle *hdl, char *filename);
+int ezusb_install_firmware(libusb_device_handle *hdl, const char *filename);
 int ezusb_upload_firmware(libusb_device *dev, int configuration,
                          const char *filename);
 #endif