Merged revisions 8123-8136 via svnmerge from
[cacao.git] / src / native / vm / nativevm.h
1 /* src/native/vm/nativevm.h - register the native functions
2
3    Copyright (C) 2007 R. Grafl, A. Krall, C. Kruegel,
4    C. Oates, R. Obermaisser, M. Platter, M. Probst, S. Ring,
5    E. Steiner, C. Thalinger, D. Thuernbeck, P. Tomsich, C. Ullrich,
6    J. Wenninger, Institut f. Computersprachen - TU Wien
7
8    This file is part of CACAO.
9
10    This program is free software; you can redistribute it and/or
11    modify it under the terms of the GNU General Public License as
12    published by the Free Software Foundation; either version 2, or (at
13    your option) any later version.
14
15    This program is distributed in the hope that it will be useful, but
16    WITHOUT ANY WARRANTY; without even the implied warranty of
17    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
18    General Public License for more details.
19
20    You should have received a copy of the GNU General Public License
21    along with this program; if not, write to the Free Software
22    Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
23    02110-1301, USA.
24
25    $Id: native.c 7906 2007-05-14 17:25:33Z twisti $
26
27 */
28
29
30 #ifndef _NATIVEVM_H
31 #define _NATIVEVM_H
32
33 #include "config.h"
34 #include "vm/types.h"
35
36 #include "vm/global.h"
37
38
39 /* function prototypes ********************************************************/
40
41 bool nativevm_preinit(void);
42 bool nativevm_init(void);
43
44 #if defined(ENABLE_JAVASE)
45
46 # if defined(WITH_CLASSPATH_GNU)
47
48 void _Jv_gnu_classpath_VMStackWalker_init();
49 void _Jv_gnu_classpath_VMSystemProperties_init();
50 void _Jv_gnu_java_lang_management_VMClassLoadingMXBeanImpl_init();
51 void _Jv_gnu_java_lang_management_VMMemoryMXBeanImpl_init();
52 void _Jv_gnu_java_lang_management_VMRuntimeMXBeanImpl_init();
53 void _Jv_gnu_java_lang_management_VMThreadMXBeanImpl_init();
54 void _Jv_java_lang_VMClass_init();
55 void _Jv_java_lang_VMClassLoader_init();
56 void _Jv_java_lang_VMObject_init();
57 void _Jv_java_lang_VMRuntime_init();
58 void _Jv_java_lang_VMString_init();
59 void _Jv_java_lang_VMSystem_init();
60 void _Jv_java_lang_VMThread_init();
61 void _Jv_java_lang_VMThrowable_init();
62 void _Jv_java_lang_management_VMManagementFactory_init();
63 void _Jv_java_lang_reflect_Constructor_init();
64 void _Jv_java_lang_reflect_Field_init();
65 void _Jv_java_lang_reflect_Method_init();
66 void _Jv_java_lang_reflect_VMProxy_init();
67 void _Jv_java_security_VMAccessController_init();
68 void _Jv_java_util_concurrent_atomic_AtomicLong_init();
69 void _Jv_sun_misc_Unsafe_init();
70
71 # elif defined(WITH_CLASSPATH_SUN)
72
73 void _Jv_sun_misc_Unsafe_init();
74
75 # else
76
77 #  error unknown classpath configuration
78
79 # endif
80
81 #elif defined(ENABLE_JAVAME_CLDC1_1)
82
83 void _Jv_com_sun_cldc_io_ResourceInputStream_init();
84 void _Jv_com_sun_cldc_io_j2me_socket_Protocol_init();
85 void _Jv_com_sun_cldchi_io_ConsoleOutputStream_init();
86 void _Jv_com_sun_cldchi_jvm_JVM_init();
87 void _Jv_java_lang_Class_init();
88 void _Jv_java_lang_Double_init();
89 void _Jv_java_lang_Float_init();
90 void _Jv_java_lang_Math_init();
91 void _Jv_java_lang_Object_init();
92 void _Jv_java_lang_Runtime_init();
93 void _Jv_java_lang_String_init();
94 void _Jv_java_lang_System_init();
95 void _Jv_java_lang_Thread_init();
96 void _Jv_java_lang_Throwable_init();
97
98 #else
99
100 # error unknown Java configuration
101
102 #endif
103
104 #endif /* _NATIVEVM_H */
105
106 /*
107  * These are local overrides for various environment variables in Emacs.
108  * Please do not remove this and leave it at the end of the file, where
109  * Emacs will automagically detect them.
110  * ---------------------------------------------------------------------
111  * Local variables:
112  * mode: c
113  * indent-tabs-mode: t
114  * c-basic-offset: 4
115  * tab-width: 4
116  * End:
117  */