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