mirror of
https://github.com/libusb/libusb.git
synced 2025-05-31 23:57:41 +00:00
android: Fix typo and syntax in comments
Fix a typo and add missing commas. Also, delete a blank line at the end of the file and use /* */ for comments consistently. Closes #1071 Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com>
This commit is contained in:
parent
3b9ce7ba7c
commit
0d9731ef67
2 changed files with 4 additions and 5 deletions
|
@ -24,12 +24,12 @@
|
|||
|
||||
/*
|
||||
* This example creates a shared object which can be accessed over JNA or JNI from Java or Kotlin in Android.
|
||||
* Hint: If you are using Android Studio set the "Debug type" to "Java Only" to receive debug messages.
|
||||
* Hint: If you are using Android Studio, set the "Debug type" to "Java Only" to receive debug messages.
|
||||
*/
|
||||
|
||||
/*
|
||||
* Usage:
|
||||
* First you have to connect your USB device from the Java side.
|
||||
* First, you have to connect your USB device from the Java side.
|
||||
* Use the android.hardware.usb class to find the USB device, claim the interfaces, and open the usb_device_connection
|
||||
* Obtain the native File Descriptor --> usb_device_connection.getFileDescriptor()
|
||||
* Pass the received int value to the unrooted_usb_description method of this code (over JNA)
|
||||
|
@ -270,7 +270,7 @@ static void print_device(libusb_device *dev, libusb_device_handle *handle)
|
|||
}
|
||||
|
||||
|
||||
// fileDescriptor = is the native File Descriptor obtained in Java and transfered to native over JNA for Example.
|
||||
/* fileDescriptor = the native file descriptor obtained in Java and transferred to native over JNA, for example */
|
||||
int unrooted_usb_description(int fileDescriptor)
|
||||
{
|
||||
libusb_context *ctx = NULL;
|
||||
|
@ -298,4 +298,3 @@ int unrooted_usb_description(int fileDescriptor)
|
|||
print_device(libusb_get_device(devh), devh);
|
||||
return r;
|
||||
}
|
||||
|
||||
|
|
|
@ -1 +1 @@
|
|||
#define LIBUSB_NANO 11707
|
||||
#define LIBUSB_NANO 11708
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue