#define SIGROK_SIGROK_INTERNAL_H
#include <stdarg.h>
+#include <glib.h>
/*--- Macros ----------------------------------------------------------------*/
#endif
/* Size of a datastore chunk in units */
-#define DATASTORE_CHUNKSIZE 512000
+#define DATASTORE_CHUNKSIZE (512 * 1024)
/*--- hwplugin.c ------------------------------------------------------------*/
/*--- log.c -----------------------------------------------------------------*/
-/* Log levels for sr_log() and friends. */
-#define SR_LOG_NONE 0
-#define SR_LOG_DBG 1
-#define SR_LOG_INFO 2
-#define SR_LOG_WARN 3
-#define SR_LOG_ERR 4
-
int sr_log(int loglevel, const char *format, ...);
+int sr_spew(const char *format, ...);
int sr_dbg(const char *format, ...);
int sr_info(const char *format, ...);
int sr_warn(const char *format, ...);
#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