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