]> gerrit.simantics Code Review - simantics/platform.git/blob - bundles/org.eclipse.swt.win32.win32.x86_64/library/wgl_stats.c
Merge branch 'bug-623' into release/1.43.0
[simantics/platform.git] / bundles / org.eclipse.swt.win32.win32.x86_64 / library / wgl_stats.c
1 /*******************************************************************************
2  * Copyright (c) 2000, 2016 IBM Corporation and others.
3  *
4  * This program and the accompanying materials
5  * are made available under the terms of the Eclipse Public License 2.0
6  * which accompanies this distribution, and is available at
7  * https://www.eclipse.org/legal/epl-2.0/
8  *
9  * SPDX-License-Identifier: EPL-2.0
10  *
11  * Contributors:
12  *    IBM Corporation - initial API and implementation
13  *******************************************************************************/
14
15 /* Note: This file was auto-generated by org.eclipse.swt.tools.internal.JNIGenerator */
16 /* DO NOT EDIT - your changes will be lost. */
17
18 #include "swt.h"
19 #include "wgl_stats.h"
20
21 #ifdef NATIVE_STATS
22
23 char * WGL_nativeFunctionNames[] = {
24         "ChoosePixelFormat",
25         "DescribePixelFormat",
26         "GetPixelFormat",
27         "SetPixelFormat",
28         "SwapBuffers",
29         "wglCopyContext",
30         "wglCreateContext",
31         "wglCreateLayerContext",
32         "wglDeleteContext",
33         "wglDescribeLayerPlane",
34         "wglGetCurrentContext",
35         "wglGetCurrentDC",
36         "wglGetLayerPaletteEntries",
37         "wglGetProcAddress",
38         "wglMakeCurrent",
39         "wglRealizeLayerPalette",
40         "wglSetLayerPaletteEntries",
41         "wglShareLists",
42         "wglSwapLayerBuffers",
43 };
44 #define NATIVE_FUNCTION_COUNT sizeof(WGL_nativeFunctionNames) / sizeof(char*)
45 int WGL_nativeFunctionCount = NATIVE_FUNCTION_COUNT;
46 int WGL_nativeFunctionCallCount[NATIVE_FUNCTION_COUNT];
47
48 #define STATS_NATIVE(func) Java_org_eclipse_swt_tools_internal_NativeStats_##func
49
50 JNIEXPORT jint JNICALL STATS_NATIVE(WGL_1GetFunctionCount)
51         (JNIEnv *env, jclass that)
52 {
53         return WGL_nativeFunctionCount;
54 }
55
56 JNIEXPORT jstring JNICALL STATS_NATIVE(WGL_1GetFunctionName)
57         (JNIEnv *env, jclass that, jint index)
58 {
59         return (*env)->NewStringUTF(env, WGL_nativeFunctionNames[index]);
60 }
61
62 JNIEXPORT jint JNICALL STATS_NATIVE(WGL_1GetFunctionCallCount)
63         (JNIEnv *env, jclass that, jint index)
64 {
65         return WGL_nativeFunctionCallCount[index];
66 }
67
68 #endif