1 /* src/native/vm/openjdk/hpi.hpp - HotSpot HPI interface functions
4 CACAOVM - Verein zur Foerderung der freien virtuellen Maschine CACAO
6 This file is part of CACAO.
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.
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.
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
31 /* HPI headers *****************************************************************
33 We include hpi_md.h before hpi.h as the latter includes the former.
35 These includes define:
37 #define _JAVASOFT_HPI_MD_H_
38 #define _JAVASOFT_HPI_H_
40 *******************************************************************************/
42 // Include our JNI header before the HPI headers, because the HPI
43 // headers include jni.h and we want to override the typedefs in
45 #include "native/jni.hpp"
47 #include INCLUDE_HPI_MD_H
48 #include INCLUDE_HPI_H
54 * Host Porting Interface (HPI).
58 GetInterfaceFunc _get_interface;
59 HPI_FileInterface* _file;
60 HPI_SocketInterface* _socket;
61 HPI_LibraryInterface* _library;
62 HPI_SystemInterface* _system;
67 inline HPI_FileInterface& get_file () const { return *_file; }
68 inline HPI_SocketInterface& get_socket () const { return *_socket; }
69 inline HPI_LibraryInterface& get_library() const { return *_library; }
70 inline HPI_SystemInterface& get_system () const { return *_system; }
72 void initialize(); // REMOVEME
73 int initialize_socket_library();
78 void HPI_initialize();
86 * These are local overrides for various environment variables in Emacs.
87 * Please do not remove this and leave it at the end of the file, where
88 * Emacs will automagically detect them.
89 * ---------------------------------------------------------------------
96 * vim:noexpandtab:sw=4:ts=4: