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

com.mindoo.domino.jna.internal.structs.NotesObjectDescriptorStruct Maven / Gradle / Ivy

There is a newer version: 0.9.53
Show newest version
package com.mindoo.domino.jna.internal.structs;
import com.mindoo.domino.jna.internal.structs.BaseStructure;
import com.sun.jna.Pointer;
import com.sun.jna.Structure;

import java.security.AccessController;
import java.security.PrivilegedAction;
import java.util.Arrays;
import java.util.List;
/**
 * 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 NotesObjectDescriptorStruct extends BaseStructure { /** Type of object (OBJECT_xxx) */ public short ObjectType; /** Object ID of the object in THIS FILE */ public int RRV; /** * @deprecated only public to be used by JNA; use static newInstance method instead to run in AccessController.doPrivileged block */ public NotesObjectDescriptorStruct() { super(); setAlignType(Structure.ALIGN_NONE); } public static NotesObjectDescriptorStruct newInstance() { return AccessController.doPrivileged(new PrivilegedAction() { @Override public NotesObjectDescriptorStruct run() { return new NotesObjectDescriptorStruct(); }}); } @Override protected List getFieldOrder() { return Arrays.asList("ObjectType", "RRV"); } /** * @param ObjectType Type of object (OBJECT_xxx)
* @param RRV Object ID of the object in THIS FILE * @deprecated only public to be used by JNA; use static newInstance method instead to run in AccessController.doPrivileged block */ public NotesObjectDescriptorStruct(short ObjectType, int RRV) { super(); setAlignType(Structure.ALIGN_NONE); this.ObjectType = ObjectType; this.RRV = RRV; } public static NotesObjectDescriptorStruct newInstance(final short ObjectType, final int RRV) { return AccessController.doPrivileged(new PrivilegedAction() { @Override public NotesObjectDescriptorStruct run() { return new NotesObjectDescriptorStruct(ObjectType, RRV); }}); } /** * @deprecated only public to be used by JNA; use static newInstance method instead to run in AccessController.doPrivileged block * * @param peer pointer */ public NotesObjectDescriptorStruct(Pointer peer) { super(peer); setAlignType(Structure.ALIGN_NONE); } public static NotesObjectDescriptorStruct newInstance(final Pointer p) { return AccessController.doPrivileged(new PrivilegedAction() { @Override public NotesObjectDescriptorStruct run() { return new NotesObjectDescriptorStruct(p); }}); } public static class ByReference extends NotesObjectDescriptorStruct implements Structure.ByReference { }; public static class ByValue extends NotesObjectDescriptorStruct implements Structure.ByValue { }; }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy