summaryrefslogtreecommitdiffstats
path: root/bundles/org.eclipse.swt/Eclipse SWT Program/kde/library/kde_stats.cpp
blob: fd78da83e0450a297b0806612bba9f96eecdebc9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
/*******************************************************************************
* Copyright (c) 2000, 2004 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Common Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/cpl-v10.html
* 
* Contributors:
*     IBM Corporation - initial API and implementation
*******************************************************************************/

#include "swt.h"
#include "kde_stats.h"

#ifdef NATIVE_STATS

int KDE_nativeFunctionCount = 41;
int KDE_nativeFunctionCallCount[41];
char * KDE_nativeFunctionNames[] = {
	"KApplication_1new",
	"KGlobal_1iconLoader",
	"KIconLoader_1iconPath",
	"KMimeTypeListIterator_1delete",
	"KMimeTypeListIterator_1dereference",
	"KMimeTypeListIterator_1equals",
	"KMimeTypeListIterator_1increment",
	"KMimeTypeList_1begin",
	"KMimeTypeList_1delete",
	"KMimeTypeList_1end",
	"KMimeType_1allMimeTypes",
	"KMimeType_1delete",
	"KMimeType_1icon",
	"KMimeType_1mimeType",
	"KMimeType_1name",
	"KMimeType_1offers",
	"KMimeType_1patterns",
	"KRun_1runURL",
	"KServiceList_1delete",
	"KURL_1delete",
	"KURL_1new",
	"QCString_1data",
	"QCString_1delete",
	"QCString_1new",
	"QStringListIterator_1delete",
	"QStringListIterator_1dereference",
	"QStringListIterator_1equals",
	"QStringListIterator_1increment",
	"QStringList_1begin",
	"QStringList_1delete",
	"QStringList_1end",
	"QString_1delete",
	"QString_1equals",
	"QString_1new",
	"QString_1utf8",
	"XFreePixmap",
	"XpmReadFileToPixmap",
	"free",
	"malloc",
	"sigaction",
	"sigaction_1sizeof",
};

#define STATS_NATIVE(func) Java_org_eclipse_swt_tools_internal_NativeStats_##func

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

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

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

#endif