Permalink
Browse files

FrameMode now implements getFieldOrder() to be compatible with new ve…

…rsions of jna.

Signed-off-by: John Scheible johnscheible@gmail.com
  • Loading branch information...
1 parent 9ab2c20 commit 55451aa61f60519fa9c691113820fbb8e985b8f1 @johnscheible johnscheible committed with zarvox Nov 29, 2012
Showing with 9 additions and 1 deletion.
  1. +9 −1 wrappers/java/src/main/java/org/openkinect/freenect/FrameMode.java
@@ -25,6 +25,8 @@
package org.openkinect.freenect;
import com.sun.jna.Structure;
+import java.util.List;
+import java.util.Arrays;
public class FrameMode extends Structure {
/* All fields are public because Structure requires it.
@@ -41,6 +43,12 @@ public FrameMode() {
valid = 0;
}
+ protected List getFieldOrder() {
+ return Arrays.asList(new String[] {"reserved", "resolution", "format",
+ "bytes", "width", "height", "dataBitsPerPixel",
+ "paddingBitsPerPixel", "framerate", "valid"});
+ }
+
public Resolution getResolution() {
return Resolution.fromInt(resolution);
}
@@ -74,4 +82,4 @@ public boolean isValid() {
}
public static class ByValue extends FrameMode implements Structure.ByValue { }
-}
+}

0 comments on commit 55451aa

Please sign in to comment.