From 94e032b926db034cdd5b3e691ca5f5b1b01b798c Mon Sep 17 00:00:00 2001 From: schlaepfer Date: Fri, 27 Oct 2006 12:41:08 +0000 Subject: [PATCH] - usb_set_debug method added git-svn-id: https://svn.code.sf.net/p/libusbjava/code/trunk@188 94ad28fe-ef68-46b1-9651-e7ae4fcf1c4c --- java/src/ch/ntb/usb/LibusbWin.java | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/java/src/ch/ntb/usb/LibusbWin.java b/java/src/ch/ntb/usb/LibusbWin.java index ab77160..d7ee43b 100644 --- a/java/src/ch/ntb/usb/LibusbWin.java +++ b/java/src/ch/ntb/usb/LibusbWin.java @@ -22,6 +22,17 @@ package ch.ntb.usb; */ public class LibusbWin { + /** + * Sets the debugging level of libusb.
+ * + * The range is from 0 to 255, where 0 disables debug output and 255 enables + * all output. On application start, debugging is disabled (0) + * + * @param level + * 0 to 255 + */ + public static native void usb_set_debug(int level); + // Core /** * Just like the name implies, usb_init sets up some internal