org.blackdread.camerabinding.jna.EdsDeviceInfo Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of camera-binding Show documentation
Show all versions of camera-binding Show documentation
Bindings of C header files in java of EDSDK
package org.blackdread.camerabinding.jna;
import com.sun.jna.NativeLong;
import com.sun.jna.Pointer;
import com.sun.jna.Structure;
import java.util.Arrays;
import java.util.List;
/**
* native declaration : sdk-header\EDSDKTypes.h
* This file was autogenerated by JNAerator,
* a tool written by Olivier Chafik that uses a few opensource projects..
* For help, please visit NativeLibs4Java , Rococoa, or JNA.
*/
public class EdsDeviceInfo extends Structure {
/** C type : EdsChar[256] */
public byte[] szPortName = new byte[256];
/** C type : EdsChar[256] */
public byte[] szDeviceDescription = new byte[256];
/** C type : EdsUInt32 */
public NativeLong deviceSubType;
/** C type : EdsUInt32 */
public NativeLong reserved;
public EdsDeviceInfo() {
super();
}
@Override
protected List getFieldOrder() {
return Arrays.asList("szPortName", "szDeviceDescription", "deviceSubType", "reserved");
}
/**
* @param szPortName C type : EdsChar[256]
* @param szDeviceDescription C type : EdsChar[256]
* @param deviceSubType C type : EdsUInt32
* @param reserved C type : EdsUInt32
*/
public EdsDeviceInfo(byte szPortName[], byte szDeviceDescription[], NativeLong deviceSubType, NativeLong reserved) {
super();
if ((szPortName.length != this.szPortName.length))
throw new IllegalArgumentException("Wrong array size !");
this.szPortName = szPortName;
if ((szDeviceDescription.length != this.szDeviceDescription.length))
throw new IllegalArgumentException("Wrong array size !");
this.szDeviceDescription = szDeviceDescription;
this.deviceSubType = deviceSubType;
this.reserved = reserved;
}
public EdsDeviceInfo(Pointer peer) {
super(peer);
}
public static class ByReference extends EdsDeviceInfo implements Structure.ByReference {
}
public static class ByValue extends EdsDeviceInfo implements Structure.ByValue {
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy