home *** CD-ROM | disk | FTP | other *** search
- /*
- * @(#)java.h 1.15 00/07/19
- *
- * Copyright 2000 Sun Microsystems, Inc. All rights reserved.
- * Copyright 2000 Sun Microsystems, Inc. Tous droits rΘservΘs.
- *
- * This software is the proprietary information of Sun Microsystems, Inc.
- * Use is subject to license terms.
- */
-
- #ifndef _JAVA_H_
- #define _JAVA_H_
-
- /*
- * Get system specific defines.
- */
- #include "jni.h"
- #include "java_md.h"
-
- /*
- * Pointers to the needed JNI invocation API, initialized by LoadJavaVM.
- */
- typedef jint (JNICALL *CreateJavaVM_t)(JavaVM **pvm, void **env, void *args);
- typedef jint (JNICALL *GetDefaultJavaVMInitArgs_t)(void *args);
-
- typedef struct {
- CreateJavaVM_t CreateJavaVM;
- GetDefaultJavaVMInitArgs_t GetDefaultJavaVMInitArgs;
- } InvocationFunctions;
-
- /*
- * Protoypes for launcher functions in the system specific java_md.c.
- */
- jboolean
- GetJVMPath(const char *jrepath, const char *jvmtype,
- char *jvmpath, jint jvmpathsize);
-
- const char *
- ReadJVMLink(const char *jrepath, const char *jvmtype,
- char* knownVMs[], int knownVMsCount);
-
- jboolean
- GetJREPath(char *path, jint pathsize);
-
- jboolean
- LoadJavaVM(const char *jvmpath, InvocationFunctions *ifn);
-
- void
- GetXUsagePath(char *buf, jint bufsize);
-
- jboolean
- GetApplicationHome(char *buf, jint bufsize);
-
- /*
- * Make launcher spit debug output.
- */
- extern jboolean debug;
-
- #endif /* _JAVA_H_ */
-