- Introduction of real Unit-Tests
- First steps of modularizing the code by extracting the Usb_Device part into a single, testable module. - Integration of Unit-Tests for the LibusbJava methods git-svn-id: https://svn.code.sf.net/p/libusbjava/code/trunk@305 94ad28fe-ef68-46b1-9651-e7ae4fcf1c4c
This commit is contained in:
18
LibusbJava/objects/Usb_Device.h
Normal file
18
LibusbJava/objects/Usb_Device.h
Normal file
@@ -0,0 +1,18 @@
|
||||
#ifndef USBDEVICE_H_
|
||||
#define USBDEVICE_H_
|
||||
|
||||
#include <jni.h>
|
||||
#include <libusb.h>
|
||||
|
||||
int Usb_Device_connect(JNIEnv *env);
|
||||
void Usb_Device_disconnect(JNIEnv *env);
|
||||
|
||||
jobject Usb_Device_create(JNIEnv *env, libusb_device *handle, uint8_t address);
|
||||
libusb_device * Usb_Device_HandleGet(JNIEnv *env, jobject dev);
|
||||
void Usb_Device_HandleSet(JNIEnv *env, jobject dev, libusb_device *handle);
|
||||
void Usb_Device_ConfigSet(JNIEnv *env, jobject dev, jobjectArray config);
|
||||
void Usb_Device_DescriptorSet(JNIEnv *env, jobject dev, jobject desc);
|
||||
void Usb_Device_NextSet(JNIEnv *env, jobject dev, jobject next);
|
||||
void Usb_Device_PrevSet(JNIEnv *env, jobject dev, jobject prev);
|
||||
|
||||
#endif /* USBDEVICE_H_ */
|
||||
Reference in New Issue
Block a user