| /******************************************************************************* |
| * Copyright (c) 2000, 2021 IBM Corporation and others. |
| * |
| * This program and the accompanying materials |
| * are made available under the terms of the Eclipse Public License 2.0 |
| * which accompanies this distribution, and is available at |
| * https://www.eclipse.org/legal/epl-2.0/ |
| * |
| * SPDX-License-Identifier: EPL-2.0 |
| * |
| * Contributors: |
| * IBM Corporation - initial API and implementation |
| *******************************************************************************/ |
| |
| /* Note: This file was auto-generated by org.eclipse.swt.tools.internal.JNIGenerator */ |
| /* DO NOT EDIT - your changes will be lost. */ |
| |
| #include "swt.h" |
| #include "gtk3_stats.h" |
| |
| #ifdef NATIVE_STATS |
| |
| char * GTK3_nativeFunctionNames[] = { |
| "gtk_1accel_1label_1new", |
| "gtk_1accel_1label_1set_1accel", |
| "gtk_1accel_1label_1set_1accel_1widget", |
| "gtk_1bin_1get_1child", |
| "gtk_1box_1pack_1end", |
| "gtk_1box_1reorder_1child", |
| "gtk_1box_1set_1child_1packing", |
| "gtk_1button_1set_1image", |
| "gtk_1calendar_1get_1date", |
| "gtk_1calendar_1select_1day", |
| "gtk_1calendar_1select_1month", |
| "gtk_1calendar_1set_1display_1options", |
| "gtk_1container_1add", |
| "gtk_1container_1forall", |
| "gtk_1container_1get_1border_1width", |
| "gtk_1container_1get_1children", |
| "gtk_1container_1propagate_1draw", |
| "gtk_1container_1remove", |
| "gtk_1container_1set_1border_1width", |
| "gtk_1dialog_1run", |
| "gtk_1get_1current_1event", |
| "gtk_1get_1current_1event_1state", |
| "gtk_1get_1event_1widget", |
| "gtk_1grab_1add", |
| "gtk_1grab_1get_1current", |
| "gtk_1grab_1remove", |
| "gtk_1hsv_1to_1rgb", |
| "gtk_1im_1context_1filter_1keypress", |
| "gtk_1init_1check", |
| "gtk_1main_1do_1event", |
| "gtk_1rgb_1to_1hsv", |
| "gtk_1widget_1get_1accessible", |
| "gtk_1window_1set_1icon_1list", |
| }; |
| #define NATIVE_FUNCTION_COUNT sizeof(GTK3_nativeFunctionNames) / sizeof(char*) |
| int GTK3_nativeFunctionCount = NATIVE_FUNCTION_COUNT; |
| int GTK3_nativeFunctionCallCount[NATIVE_FUNCTION_COUNT]; |
| |
| #define STATS_NATIVE(func) Java_org_eclipse_swt_tools_internal_NativeStats_##func |
| |
| JNIEXPORT jint JNICALL STATS_NATIVE(GTK3_1GetFunctionCount) |
| (JNIEnv *env, jclass that) |
| { |
| return GTK3_nativeFunctionCount; |
| } |
| |
| JNIEXPORT jstring JNICALL STATS_NATIVE(GTK3_1GetFunctionName) |
| (JNIEnv *env, jclass that, jint index) |
| { |
| return (*env)->NewStringUTF(env, GTK3_nativeFunctionNames[index]); |
| } |
| |
| JNIEXPORT jint JNICALL STATS_NATIVE(GTK3_1GetFunctionCallCount) |
| (JNIEnv *env, jclass that, jint index) |
| { |
| return GTK3_nativeFunctionCallCount[index]; |
| } |
| |
| #endif |