/*******************************************************************************
 * Copyright (c) 2009, 2021 IBM Corporation and others. All rights reserved.
 * The contents of this file are made available under the terms
 * of the GNU Lesser General Public License (LGPL) Version 2.1 that
 * accompanies this distribution (lgpl-v21.txt).  The LGPL is also
 * available at http://www.gnu.org/licenses/lgpl.html.  If the version
 * of the LGPL at http://www.gnu.org is different to the version of
 * the LGPL accompanying this distribution and there is any conflict
 * between the two license versions, the terms of the LGPL accompanying
 * this distribution shall govern.
 * 
 * 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 "webkitgtk_stats.h"

#ifdef NATIVE_STATS

char * WebKitGTK_nativeFunctionNames[] = {
	"GdkRectangle_1sizeof",
	"JSObjectGetProperty",
	"JSObjectGetPropertyAtIndex",
	"JSObjectMakeArray",
	"JSStringCreateWithUTF8CString",
	"JSStringGetMaximumUTF8CStringSize",
	"JSStringGetUTF8CString",
	"JSStringRelease",
	"JSValueGetType",
	"JSValueMakeBoolean",
	"JSValueMakeNumber",
	"JSValueMakeString",
	"JSValueMakeUndefined",
	"JSValueToNumber",
	"JSValueToStringCopy",
	"soup_1cookie_1get_1name",
	"soup_1cookie_1get_1value",
	"soup_1cookie_1parse",
	"soup_1message_1headers_1append",
	"soup_1uri_1free",
	"soup_1uri_1new",
	"webkit_1authentication_1request_1authenticate",
	"webkit_1authentication_1request_1cancel",
	"webkit_1authentication_1request_1is_1retry",
	"webkit_1cookie_1manager_1add_1cookie",
	"webkit_1cookie_1manager_1add_1cookie_1finish",
	"webkit_1cookie_1manager_1get_1cookies",
	"webkit_1cookie_1manager_1get_1cookies_1finish",
	"webkit_1credential_1free",
	"webkit_1credential_1new",
	"webkit_1dom_1event_1target_1add_1event_1listener",
	"webkit_1dom_1mouse_1event_1get_1alt_1key",
	"webkit_1dom_1mouse_1event_1get_1button",
	"webkit_1dom_1mouse_1event_1get_1ctrl_1key",
	"webkit_1dom_1mouse_1event_1get_1meta_1key",
	"webkit_1dom_1mouse_1event_1get_1screen_1x",
	"webkit_1dom_1mouse_1event_1get_1screen_1y",
	"webkit_1dom_1mouse_1event_1get_1shift_1key",
	"webkit_1dom_1ui_1event_1get_1char_1code",
	"webkit_1dom_1ui_1event_1get_1detail",
	"webkit_1dom_1ui_1event_1get_1key_1code",
	"webkit_1download_1cancel",
	"webkit_1download_1get_1received_1data_1length",
	"webkit_1download_1get_1request",
	"webkit_1download_1get_1response",
	"webkit_1download_1get_1type",
	"webkit_1download_1get_1web_1view",
	"webkit_1download_1set_1allow_1overwrite",
	"webkit_1download_1set_1destination",
	"webkit_1get_1major_1version",
	"webkit_1get_1micro_1version",
	"webkit_1get_1minor_1version",
	"webkit_1hit_1test_1result_1context_1is_1link",
	"webkit_1hit_1test_1result_1get_1link_1title",
	"webkit_1hit_1test_1result_1get_1link_1uri",
	"webkit_1javascript_1result_1get_1global_1context",
	"webkit_1javascript_1result_1get_1value",
	"webkit_1javascript_1result_1unref",
	"webkit_1navigation_1policy_1decision_1get_1request",
	"webkit_1policy_1decision_1download",
	"webkit_1policy_1decision_1ignore",
	"webkit_1response_1policy_1decision_1get_1request",
	"webkit_1response_1policy_1decision_1get_1response",
	"webkit_1uri_1request_1get_1http_1headers",
	"webkit_1uri_1request_1get_1uri",
	"webkit_1uri_1request_1new",
	"webkit_1uri_1response_1get_1content_1length",
	"webkit_1uri_1response_1get_1mime_1type",
	"webkit_1web_1context_1allow_1tls_1certificate_1for_1host",
	"webkit_1web_1context_1get_1cookie_1manager",
	"webkit_1web_1context_1get_1default",
	"webkit_1web_1context_1get_1type",
	"webkit_1web_1context_1get_1website_1data_1manager",
	"webkit_1web_1context_1set_1tls_1errors_1policy",
	"webkit_1web_1context_1set_1web_1extensions_1directory",
	"webkit_1web_1context_1set_1web_1extensions_1initialization_1user_1data",
	"webkit_1web_1resource_1get_1data",
	"webkit_1web_1resource_1get_1data_1finish",
	"webkit_1web_1view_1can_1go_1back",
	"webkit_1web_1view_1can_1go_1forward",
	"webkit_1web_1view_1can_1show_1mime_1type",
	"webkit_1web_1view_1get_1context",
	"webkit_1web_1view_1get_1estimated_1load_1progress",
	"webkit_1web_1view_1get_1main_1resource",
	"webkit_1web_1view_1get_1page_1id",
	"webkit_1web_1view_1get_1settings",
	"webkit_1web_1view_1get_1title",
	"webkit_1web_1view_1get_1uri",
	"webkit_1web_1view_1get_1window_1properties",
	"webkit_1web_1view_1go_1back",
	"webkit_1web_1view_1go_1forward",
	"webkit_1web_1view_1load_1bytes",
	"webkit_1web_1view_1load_1html",
	"webkit_1web_1view_1load_1request",
	"webkit_1web_1view_1load_1uri",
	"webkit_1web_1view_1new",
	"webkit_1web_1view_1new_1with_1related_1view",
	"webkit_1web_1view_1reload",
	"webkit_1web_1view_1run_1javascript",
	"webkit_1web_1view_1run_1javascript_1finish",
	"webkit_1web_1view_1stop_1loading",
	"webkit_1website_1data_1manager_1clear",
	"webkit_1window_1properties_1get_1geometry",
};
#define NATIVE_FUNCTION_COUNT sizeof(WebKitGTK_nativeFunctionNames) / sizeof(char*)
int WebKitGTK_nativeFunctionCount = NATIVE_FUNCTION_COUNT;
int WebKitGTK_nativeFunctionCallCount[NATIVE_FUNCTION_COUNT];

#define STATS_NATIVE(func) Java_org_eclipse_swt_tools_internal_NativeStats_##func

JNIEXPORT jint JNICALL STATS_NATIVE(WebKitGTK_1GetFunctionCount)
	(JNIEnv *env, jclass that)
{
	return WebKitGTK_nativeFunctionCount;
}

JNIEXPORT jstring JNICALL STATS_NATIVE(WebKitGTK_1GetFunctionName)
	(JNIEnv *env, jclass that, jint index)
{
	return (*env)->NewStringUTF(env, WebKitGTK_nativeFunctionNames[index]);
}

JNIEXPORT jint JNICALL STATS_NATIVE(WebKitGTK_1GetFunctionCallCount)
	(JNIEnv *env, jclass that, jint index)
{
	return WebKitGTK_nativeFunctionCallCount[index];
}

#endif
