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$6 {
36 
37     static final FunctionDescriptor clang_getCursorKind$FUNC = FunctionDescriptor.of(JAVA_INT,
38         MemoryLayout.structLayout(
39             JAVA_INT.withName("kind"),
40             JAVA_INT.withName("xdata"),
41             MemoryLayout.sequenceLayout(3, ADDRESS).withName("data")
42         )
43     );
44     static final MethodHandle clang_getCursorKind$MH = RuntimeHelper.downcallHandle(
45         "clang_getCursorKind",
46         constants$6.clang_getCursorKind$FUNC, false
47     );
48     static final FunctionDescriptor clang_isDeclaration$FUNC = FunctionDescriptor.of(JAVA_INT,
49         JAVA_INT
50     );
51     static final MethodHandle clang_isDeclaration$MH = RuntimeHelper.downcallHandle(
52         "clang_isDeclaration",
53         constants$6.clang_isDeclaration$FUNC, false
54     );
55     static final FunctionDescriptor clang_isAttribute$FUNC = FunctionDescriptor.of(JAVA_INT,
56         JAVA_INT
57     );
58     static final MethodHandle clang_isAttribute$MH = RuntimeHelper.downcallHandle(
59         "clang_isAttribute",
60         constants$6.clang_isAttribute$FUNC, false
61     );
62     static final FunctionDescriptor clang_isInvalid$FUNC = FunctionDescriptor.of(JAVA_INT,
63         JAVA_INT
64     );
65     static final MethodHandle clang_isInvalid$MH = RuntimeHelper.downcallHandle(
66         "clang_isInvalid",
67         constants$6.clang_isInvalid$FUNC, false
68     );
69     static final FunctionDescriptor clang_isPreprocessing$FUNC = FunctionDescriptor.of(JAVA_INT,
70         JAVA_INT
71     );
72     static final MethodHandle clang_isPreprocessing$MH = RuntimeHelper.downcallHandle(
73         "clang_isPreprocessing",
74         constants$6.clang_isPreprocessing$FUNC, false
75     );
76     static final FunctionDescriptor clang_getCursorLanguage$FUNC = FunctionDescriptor.of(JAVA_INT,
77         MemoryLayout.structLayout(
78             JAVA_INT.withName("kind"),
79             JAVA_INT.withName("xdata"),
80             MemoryLayout.sequenceLayout(3, ADDRESS).withName("data")
81         )
82     );
83     static final MethodHandle clang_getCursorLanguage$MH = RuntimeHelper.downcallHandle(
84         "clang_getCursorLanguage",
85         constants$6.clang_getCursorLanguage$FUNC, false
86     );
87 }
88 
89