All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.blackdread.camerabinding.jna.EdsDeviceInfo Maven / Gradle / Ivy

There is a newer version: 1.2.0
Show newest version
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