* src/native/vm/openjdk/management.cpp: New file.
[cacao.git] / src / native / vm / openjdk / management.hpp
1 /* src/native/vm/openjdk/management.hpp - HotSpot management interface functions
2
3    Copyright (C) 2008 Theobroma Systems Ltd.
4
5    This file is part of CACAO.
6
7    This program is free software; you can redistribute it and/or
8    modify it under the terms of the GNU General Public License as
9    published by the Free Software Foundation; either version 2, or (at
10    your option) any later version.
11
12    This program is distributed in the hope that it will be useful, but
13    WITHOUT ANY WARRANTY; without even the implied warranty of
14    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
15    General Public License for more details.
16
17    You should have received a copy of the GNU General Public License
18    along with this program; if not, write to the Free Software
19    Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
20    02110-1301, USA.
21
22 */
23
24
25 #ifndef _MANAGEMENT_HPP
26 #define _MANAGEMENT_HPP
27
28 #include <stdint.h>
29
30 // Include our JNI header before the JMM header, because the JMM
31 // header include jni.h and we want to override the typedefs in jni.h.
32 #include "native/jni.hpp"
33
34 #include INCLUDE_JMM_H
35
36
37 #ifdef __cplusplus
38
39 /**
40  * Management support.
41  */
42 class Management {
43 private:
44         jmmOptionalSupport _optional_support;
45
46 public:
47         Management();
48
49         static void* get_jmm_interface(int version);
50
51         const jmmOptionalSupport& get_optional_support() const;
52 };
53
54 #else
55
56 typedef struct Management Management;
57
58 #endif
59
60 #endif // _MANAGEMENT_HPP
61
62
63 /*
64  * These are local overrides for various environment variables in Emacs.
65  * Please do not remove this and leave it at the end of the file, where
66  * Emacs will automagically detect them.
67  * ---------------------------------------------------------------------
68  * Local variables:
69  * mode: c++
70  * indent-tabs-mode: t
71  * c-basic-offset: 4
72  * tab-width: 4
73  * End:
74  * vim:noexpandtab:sw=4:ts=4:
75  */