| /******************************************************************************* |
| * 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_1clipboard_1clear", |
| "gtk_1clipboard_1get", |
| "gtk_1clipboard_1set_1can_1store", |
| "gtk_1clipboard_1set_1with_1owner", |
| "gtk_1clipboard_1store", |
| "gtk_1clipboard_1wait_1for_1contents", |
| "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_1drag_1begin_1with_1coordinates", |
| "gtk_1drag_1check_1threshold", |
| "gtk_1drag_1dest_1set", |
| "gtk_1drag_1dest_1unset", |
| "gtk_1drag_1finish", |
| "gtk_1drag_1get_1data", |
| "gtk_1drag_1set_1icon_1surface", |
| "gtk_1events_1pending", |
| "gtk_1file_1chooser_1get_1filename", |
| "gtk_1file_1chooser_1get_1filenames", |
| "gtk_1file_1chooser_1get_1uri", |
| "gtk_1file_1chooser_1get_1uris", |
| "gtk_1file_1chooser_1set_1current_1folder", |
| "gtk_1file_1chooser_1set_1current_1folder_1uri", |
| "gtk_1file_1chooser_1set_1do_1overwrite_1confirmation", |
| "gtk_1file_1chooser_1set_1extra_1widget", |
| "gtk_1file_1chooser_1set_1filename", |
| "gtk_1file_1chooser_1set_1local_1only", |
| "gtk_1file_1chooser_1set_1uri", |
| "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_1main_1iteration_1do", |
| "gtk_1native_1dialog_1run", |
| "gtk_1radio_1button_1get_1group", |
| "gtk_1radio_1button_1new", |
| "gtk_1rgb_1to_1hsv", |
| "gtk_1scrolled_1window_1get_1shadow_1type", |
| "gtk_1scrolled_1window_1new", |
| "gtk_1scrolled_1window_1set_1shadow_1type", |
| "gtk_1status_1icon_1get_1visible", |
| "gtk_1status_1icon_1new", |
| "gtk_1status_1icon_1set_1from_1pixbuf", |
| "gtk_1status_1icon_1set_1tooltip_1text", |
| "gtk_1status_1icon_1set_1visible", |
| "gtk_1target_1list_1new", |
| "gtk_1target_1list_1unref", |
| "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 |