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$1 { 36 37 static final FunctionDescriptor clang_equalLocations$FUNC = FunctionDescriptor.of(JAVA_INT, 38 MemoryLayout.structLayout( 39 MemoryLayout.sequenceLayout(2, ADDRESS).withName("ptr_data"), 40 JAVA_INT.withName("int_data"), 41 MemoryLayout.paddingLayout(32) 42 ), 43 MemoryLayout.structLayout( 44 MemoryLayout.sequenceLayout(2, ADDRESS).withName("ptr_data"), 45 JAVA_INT.withName("int_data"), 46 MemoryLayout.paddingLayout(32) 47 ) 48 ); 49 static final MethodHandle clang_equalLocations$MH = RuntimeHelper.downcallHandle( 50 "clang_equalLocations", 51 constants$1.clang_equalLocations$FUNC, false 52 ); 53 static final FunctionDescriptor clang_getLocation$FUNC = FunctionDescriptor.of(MemoryLayout.structLayout( 54 MemoryLayout.sequenceLayout(2, ADDRESS).withName("ptr_data"), 55 JAVA_INT.withName("int_data"), 56 MemoryLayout.paddingLayout(32) 57 ), 58 ADDRESS, 59 ADDRESS, 60 JAVA_INT, 61 JAVA_INT 62 ); 63 static final MethodHandle clang_getLocation$MH = RuntimeHelper.downcallHandle( 64 "clang_getLocation", 65 constants$1.clang_getLocation$FUNC, false 66 ); 67 static final FunctionDescriptor clang_getLocationForOffset$FUNC = FunctionDescriptor.of(MemoryLayout.structLayout( 68 MemoryLayout.sequenceLayout(2, ADDRESS).withName("ptr_data"), 69 JAVA_INT.withName("int_data"), 70 MemoryLayout.paddingLayout(32) 71 ), 72 ADDRESS, 73 ADDRESS, 74 JAVA_INT 75 ); 76 static final MethodHandle clang_getLocationForOffset$MH = RuntimeHelper.downcallHandle( 77 "clang_getLocationForOffset", 78 constants$1.clang_getLocationForOffset$FUNC, false 79 ); 80 static final FunctionDescriptor clang_Location_isInSystemHeader$FUNC = FunctionDescriptor.of(JAVA_INT, 81 MemoryLayout.structLayout( 82 MemoryLayout.sequenceLayout(2, ADDRESS).withName("ptr_data"), 83 JAVA_INT.withName("int_data"), 84 MemoryLayout.paddingLayout(32) 85 ) 86 ); 87 static final MethodHandle clang_Location_isInSystemHeader$MH = RuntimeHelper.downcallHandle( 88 "clang_Location_isInSystemHeader", 89 constants$1.clang_Location_isInSystemHeader$FUNC, false 90 ); 91 static final FunctionDescriptor clang_Location_isFromMainFile$FUNC = FunctionDescriptor.of(JAVA_INT, 92 MemoryLayout.structLayout( 93 MemoryLayout.sequenceLayout(2, ADDRESS).withName("ptr_data"), 94 JAVA_INT.withName("int_data"), 95 MemoryLayout.paddingLayout(32) 96 ) 97 ); 98 static final MethodHandle clang_Location_isFromMainFile$MH = RuntimeHelper.downcallHandle( 99 "clang_Location_isFromMainFile", 100 constants$1.clang_Location_isFromMainFile$FUNC, false 101 ); 102 static final FunctionDescriptor clang_Range_isNull$FUNC = FunctionDescriptor.of(JAVA_INT, 103 MemoryLayout.structLayout( 104 MemoryLayout.sequenceLayout(2, ADDRESS).withName("ptr_data"), 105 JAVA_INT.withName("begin_int_data"), 106 JAVA_INT.withName("end_int_data") 107 ) 108 ); 109 static final MethodHandle clang_Range_isNull$MH = RuntimeHelper.downcallHandle( 110 "clang_Range_isNull", 111 constants$1.clang_Range_isNull$FUNC, false 112 ); 113 } 114 115