- support for extra descriptor added

git-svn-id: https://svn.code.sf.net/p/libusbjava/code/trunk@243 94ad28fe-ef68-46b1-9651-e7ae4fcf1c4c
This commit is contained in:
spandi
2007-02-14 21:57:42 +00:00
parent 188aaf27f8
commit 0f627b66c6
8 changed files with 34 additions and 39 deletions

View File

@@ -42,7 +42,7 @@ public class Usb_Interface_Descriptor extends Usb_Descriptor {
private Usb_Endpoint_Descriptor[] endpoint;
private Usb_Interface_Descriptor extra; /* Extra descriptors */
private byte[] extra; /* Extra descriptors */
private int extralen;
@@ -119,13 +119,11 @@ public class Usb_Interface_Descriptor extends Usb_Descriptor {
}
/**
* Extra descriptors are currently not interpreted because of their unknown
* structure.
* Returns the data of extra descriptor(s) if available.<br>
*
* @return null
* @return null or a byte array with the extra descriptor data
*/
// TODO: implementation
public Usb_Interface_Descriptor getExtra() {
public byte[] getExtra() {
return extra;
}