jdk_util.h revision 0
ccf9d4a5c6453fa9f8b839baeee25147865fbb7dJames Phillpotts/*
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster * Copyright 2004-2005 Sun Microsystems, Inc. All Rights Reserved.
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster *
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster * This code is free software; you can redistribute it and/or modify it
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster * under the terms of the GNU General Public License version 2 only, as
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster * published by the Free Software Foundation. Sun designates this
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster * particular file as subject to the "Classpath" exception as provided
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster * by Sun in the LICENSE file that accompanied this code.
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster *
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster * This code is distributed in the hope that it will be useful, but WITHOUT
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster * version 2 for more details (a copy is included in the LICENSE file that
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster * accompanied this code).
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster *
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster * You should have received a copy of the GNU General Public License version
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster * 2 along with this work; if not, write to the Free Software Foundation,
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster *
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster * CA 95054 USA or visit www.sun.com if you need additional information or
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster * have any questions.
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster */
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster#ifndef JDK_UTIL_H
ccf9d4a5c6453fa9f8b839baeee25147865fbb7dJames Phillpotts#define JDK_UTIL_H
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster#include "jni.h"
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster#include "jvm.h"
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster
ccf9d4a5c6453fa9f8b839baeee25147865fbb7dJames Phillpotts#ifdef __cplusplus
ccf9d4a5c6453fa9f8b839baeee25147865fbb7dJames Phillpottsextern "C" {
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster#endif
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster/*-------------------------------------------------------
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster * Exported interfaces for both JDK and JVM to use
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster *-------------------------------------------------------
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster */
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster/*
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster *
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster */
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan FosterJNIEXPORT void
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan FosterJDK_GetVersionInfo0(jdk_version_info* info, size_t info_size);
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster/*-------------------------------------------------------
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster * Internal interface for JDK to use
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster *-------------------------------------------------------
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster */
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster/* Init JVM handle for symbol lookup;
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster * Return 0 if JVM handle not found.
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster */
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Fosterint JDK_InitJvmHandle();
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster/* Find the named JVM entry; returns NULL if not found. */
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Fostervoid* JDK_FindJvmEntry(const char* name);
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster#ifdef __cplusplus
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster} /* extern "C" */
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster#endif /* __cplusplus */
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster#endif /* JDK_UTIL_H */
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster