1 /*******************************************************************************
2 * Copyright (c) 2000, 2016 IBM Corporation and others.
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/
9 * SPDX-License-Identifier: EPL-2.0
12 * IBM Corporation - initial API and implementation
13 *******************************************************************************/
15 /* Note: This file was auto-generated by org.eclipse.swt.tools.internal.JNIGenerator */
16 /* DO NOT EDIT - your changes will be lost. */
19 #include "wgl_stats.h"
23 char * WGL_nativeFunctionNames[] = {
25 "DescribePixelFormat",
31 "wglCreateLayerContext",
33 "wglDescribeLayerPlane",
34 "wglGetCurrentContext",
36 "wglGetLayerPaletteEntries",
39 "wglRealizeLayerPalette",
40 "wglSetLayerPaletteEntries",
42 "wglSwapLayerBuffers",
44 #define NATIVE_FUNCTION_COUNT sizeof(WGL_nativeFunctionNames) / sizeof(char*)
45 int WGL_nativeFunctionCount = NATIVE_FUNCTION_COUNT;
46 int WGL_nativeFunctionCallCount[NATIVE_FUNCTION_COUNT];
48 #define STATS_NATIVE(func) Java_org_eclipse_swt_tools_internal_NativeStats_##func
50 JNIEXPORT jint JNICALL STATS_NATIVE(WGL_1GetFunctionCount)
51 (JNIEnv *env, jclass that)
53 return WGL_nativeFunctionCount;
56 JNIEXPORT jstring JNICALL STATS_NATIVE(WGL_1GetFunctionName)
57 (JNIEnv *env, jclass that, jint index)
59 return (*env)->NewStringUTF(env, WGL_nativeFunctionNames[index]);
62 JNIEXPORT jint JNICALL STATS_NATIVE(WGL_1GetFunctionCallCount)
63 (JNIEnv *env, jclass that, jint index)
65 return WGL_nativeFunctionCallCount[index];