1 /*******************************************************************************
2 * Copyright (c) 2009, 2016 IBM Corporation and others. All rights reserved.
3 * The contents of this file are made available under the terms
4 * of the GNU Lesser General Public License (LGPL) Version 2.1 that
5 * accompanies this distribution (lgpl-v21.txt). The LGPL is also
6 * available at http://www.gnu.org/licenses/lgpl.html. If the version
7 * of the LGPL at http://www.gnu.org is different to the version of
8 * the LGPL accompanying this distribution and there is any conflict
9 * between the two license versions, the terms of the LGPL accompanying
10 * this distribution shall govern.
13 * IBM Corporation - initial API and implementation
14 *******************************************************************************/
16 /* Note: This file was auto-generated by org.eclipse.swt.tools.internal.JNIGenerator */
17 /* DO NOT EDIT - your changes will be lost. */
20 #include "webkit_win32_stats.h"
24 char * WebKit_win32_nativeFunctionNames[] = {
26 "CFArrayGetValueAtIndex",
31 "CFHTTPCookieCreateWithResponseHeaderFields",
32 "CFHTTPCookieGetFlags",
33 "CFHTTPCookieGetName",
34 "CFHTTPCookieGetValue",
35 "CFHTTPCookieStorageCopyCookies",
36 "CFHTTPCookieStorageCopyCookiesForURL",
37 "CFHTTPCookieStorageDeleteCookie",
38 "CFHTTPCookieStorageSetCookie",
40 "CFStringCreateWithCharacters",
41 "CFStringGetCharacterAtIndex",
42 "CFStringGetCharactersPtr",
44 "CFURLCreateWithString",
45 "CFURLRequestCopyHTTPRequestBody",
46 "CFURLRequestCreateMutableCopy",
47 "CFURLRequestSetHTTPRequestBody",
50 "JSClassDefinition_1sizeof",
52 "JSContextGetGlobalObject",
54 "JSGlobalContextRetain",
55 "JSObjectCallAsFunctionProc_1CALLBACK",
57 "JSObjectGetProperty",
58 "JSObjectGetPropertyAtIndex",
59 "JSObjectGetPropertyProc_1CALLBACK",
60 "JSObjectHasPropertyProc_1CALLBACK",
63 "JSObjectMakeFunctionWithCallback",
64 "JSObjectSetProperty",
65 "JSStringCreateWithUTF8CString",
67 "JSStringGetMaximumUTF8CStringSize",
68 "JSStringGetUTF8CString",
69 "JSStringIsEqualToUTF8CString",
72 "JSValueIsObjectOfClass",
77 "JSValueMakeUndefined",
79 "JSValueToStringCopy",
80 "WebKitCreateInstance",
81 "kCFCopyStringDictionaryKeyCallBacks",
82 "kCFTypeDictionaryValueCallBacks",
84 "willPerformClientRedirectToURL_1CALLBACK",
86 #define NATIVE_FUNCTION_COUNT sizeof(WebKit_win32_nativeFunctionNames) / sizeof(char*)
87 int WebKit_win32_nativeFunctionCount = NATIVE_FUNCTION_COUNT;
88 int WebKit_win32_nativeFunctionCallCount[NATIVE_FUNCTION_COUNT];
90 #define STATS_NATIVE(func) Java_org_eclipse_swt_tools_internal_NativeStats_##func
92 JNIEXPORT jint JNICALL STATS_NATIVE(WebKit_1win32_1GetFunctionCount)
93 (JNIEnv *env, jclass that)
95 return WebKit_win32_nativeFunctionCount;
98 JNIEXPORT jstring JNICALL STATS_NATIVE(WebKit_1win32_1GetFunctionName)
99 (JNIEnv *env, jclass that, jint index)
101 return env->NewStringUTF(WebKit_win32_nativeFunctionNames[index]);
104 JNIEXPORT jint JNICALL STATS_NATIVE(WebKit_1win32_1GetFunctionCallCount)
105 (JNIEnv *env, jclass that, jint index)
107 return WebKit_win32_nativeFunctionCallCount[index];