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