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 

Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com>
This commit is contained in:
Yegor Yefremov 2022-02-12 15:07:36 +01:00 committed by Tormod Volden
parent 3b9ce7ba7c
commit 0d9731ef67
2 changed files with 4 additions and 5 deletions
android/examples
libusb

View file

@ -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;
}

View file

@ -1 +1 @@
#define LIBUSB_NANO 11707
#define LIBUSB_NANO 11708