1 /* 2 * Copyright (c) 2021, Oracle and/or its affiliates. All rights reserved. 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 * 5 * This code is free software; you can redistribute it and/or modify it 6 * under the terms of the GNU General Public License version 2 only, as 7 * published by the Free Software Foundation. Oracle designates this 8 * particular file as subject to the "Classpath" exception as provided 9 * by Oracle in the LICENSE file that accompanied this code. 10 * 11 * This code is distributed in the hope that it will be useful, but WITHOUT 12 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 13 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 14 * version 2 for more details (a copy is included in the LICENSE file that 15 * accompanied this code). 16 * 17 * You should have received a copy of the GNU General Public License version 18 * 2 along with this work; if not, write to the Free Software Foundation, 19 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 20 * 21 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 22 * or visit www.oracle.com if you need additional information or have any 23 * questions. 24 */ 25 26 // Generated by jextract 27 28 package jdk.internal.clang.libclang; 29 30 import java.lang.invoke.MethodHandle; 31 import java.lang.invoke.VarHandle; 32 import java.nio.ByteOrder; 33 import jdk.incubator.foreign.*; 34 import static jdk.incubator.foreign.ValueLayout.*; 35 class constants$12 { 36 37 static final FunctionDescriptor clang_getArraySize$FUNC = FunctionDescriptor.of(JAVA_LONG, 38 MemoryLayout.structLayout( 39 JAVA_INT.withName("kind"), 40 MemoryLayout.paddingLayout(32), 41 MemoryLayout.sequenceLayout(2, ADDRESS).withName("data") 42 ) 43 ); 44 static final MethodHandle clang_getArraySize$MH = RuntimeHelper.downcallHandle( 45 "clang_getArraySize", 46 constants$12.clang_getArraySize$FUNC, false 47 ); 48 static final FunctionDescriptor clang_Type_getSizeOf$FUNC = FunctionDescriptor.of(JAVA_LONG, 49 MemoryLayout.structLayout( 50 JAVA_INT.withName("kind"), 51 MemoryLayout.paddingLayout(32), 52 MemoryLayout.sequenceLayout(2, ADDRESS).withName("data") 53 ) 54 ); 55 static final MethodHandle clang_Type_getSizeOf$MH = RuntimeHelper.downcallHandle( 56 "clang_Type_getSizeOf", 57 constants$12.clang_Type_getSizeOf$FUNC, false 58 ); 59 static final FunctionDescriptor clang_Type_getOffsetOf$FUNC = FunctionDescriptor.of(JAVA_LONG, 60 MemoryLayout.structLayout( 61 JAVA_INT.withName("kind"), 62 MemoryLayout.paddingLayout(32), 63 MemoryLayout.sequenceLayout(2, ADDRESS).withName("data") 64 ), 65 ADDRESS 66 ); 67 static final MethodHandle clang_Type_getOffsetOf$MH = RuntimeHelper.downcallHandle( 68 "clang_Type_getOffsetOf", 69 constants$12.clang_Type_getOffsetOf$FUNC, false 70 ); 71 static final FunctionDescriptor clang_Cursor_isAnonymous$FUNC = FunctionDescriptor.of(JAVA_INT, 72 MemoryLayout.structLayout( 73 JAVA_INT.withName("kind"), 74 JAVA_INT.withName("xdata"), 75 MemoryLayout.sequenceLayout(3, ADDRESS).withName("data") 76 ) 77 ); 78 static final MethodHandle clang_Cursor_isAnonymous$MH = RuntimeHelper.downcallHandle( 79 "clang_Cursor_isAnonymous", 80 constants$12.clang_Cursor_isAnonymous$FUNC, false 81 ); 82 static final FunctionDescriptor clang_Cursor_isAnonymousRecordDecl$FUNC = FunctionDescriptor.of(JAVA_INT, 83 MemoryLayout.structLayout( 84 JAVA_INT.withName("kind"), 85 JAVA_INT.withName("xdata"), 86 MemoryLayout.sequenceLayout(3, ADDRESS).withName("data") 87 ) 88 ); 89 static final MethodHandle clang_Cursor_isAnonymousRecordDecl$MH = RuntimeHelper.downcallHandle( 90 "clang_Cursor_isAnonymousRecordDecl", 91 constants$12.clang_Cursor_isAnonymousRecordDecl$FUNC, false 92 ); 93 static final FunctionDescriptor clang_Cursor_isBitField$FUNC = FunctionDescriptor.of(JAVA_INT, 94 MemoryLayout.structLayout( 95 JAVA_INT.withName("kind"), 96 JAVA_INT.withName("xdata"), 97 MemoryLayout.sequenceLayout(3, ADDRESS).withName("data") 98 ) 99 ); 100 static final MethodHandle clang_Cursor_isBitField$MH = RuntimeHelper.downcallHandle( 101 "clang_Cursor_isBitField", 102 constants$12.clang_Cursor_isBitField$FUNC, false 103 ); 104 } 105 106