183N/A/*
2362N/A * Copyright (c) 2008, Oracle and/or its affiliates. All rights reserved.
268N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
268N/A *
268N/A * This code is free software; you can redistribute it and/or modify it
268N/A * under the terms of the GNU General Public License version 2 only, as
2362N/A * published by the Free Software Foundation. Oracle designates this
268N/A * particular file as subject to the "Classpath" exception as provided
2362N/A * by Oracle in the LICENSE file that accompanied this code.
268N/A *
268N/A * This code is distributed in the hope that it will be useful, but WITHOUT
268N/A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
268N/A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
268N/A * version 2 for more details (a copy is included in the LICENSE file that
268N/A * accompanied this code).
268N/A *
268N/A * You should have received a copy of the GNU General Public License version
268N/A * 2 along with this work; if not, write to the Free Software Foundation,
268N/A * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
268N/A *
2362N/A * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
2362N/A * or visit www.oracle.com if you need additional information or have any
2362N/A * questions.
183N/A */
183N/A
183N/A#ifndef _JVM_SYMBOLS_H
183N/A#define _JVM_SYMBOLS_H
183N/A
183N/A#include "jvm.h"
183N/A
183N/Atypedef jint (JNICALL* GetVersion_t)(JNIEnv*);
183N/Atypedef jboolean (JNICALL *IsSupported_t)(JNIEnv*);
183N/Atypedef jlong (JNICALL* Activate_t)(
183N/A JNIEnv*, jint, jstring, jint, JVM_DTraceProvider*);
183N/Atypedef void (JNICALL *Dispose_t)(JNIEnv*, jlong);
183N/Atypedef jboolean (JNICALL *IsProbeEnabled_t)(JNIEnv*, jmethodID);
183N/A
183N/Atypedef struct {
183N/A GetVersion_t GetVersion;
183N/A IsSupported_t IsSupported;
183N/A Activate_t Activate;
183N/A Dispose_t Dispose;
183N/A IsProbeEnabled_t IsProbeEnabled;
183N/A} JvmSymbols;
183N/A
183N/A// Platform-dependent implementation.
183N/A// Returns NULL if the symbols are not found
183N/Aextern JvmSymbols* lookupJvmSymbols();
183N/A
183N/A#endif // def _JVM_SYMBOLS_H