#include "jni.h"
#include "hyport.h"
#include "hyvmls.h"
#include "zipsup.h"
Data Structures | |
struct | VMInterfaceFunctions_ |
The VM interface function table. More... | |
Defines | |
#define | VMI_ACCESS_FROM_ENV(env) VMInterface* privateVMI = VMI_GetVMIFromJNIEnv(env) |
Convenience macros for acquiring a VMInterface. | |
#define | BOOTCLASSPATH_PROPERTY "org.apache.harmony.boot.class.path" |
Name of the property holding bootclasspath string. | |
Typedefs | |
typedef struct VMInterfaceFunctions_ * | VMInterface |
The VM interface structure. | |
Enumerations | |
enum | vmiError { VMI_ERROR_NONE = 0, VMI_ERROR_UNKNOWN = 1, VMI_ERROR_UNIMPLEMENTED = 2, VMI_ERROR_UNSUPPORTED_VERSION = 3, VMI_ERROR_OUT_OF_MEMORY = 4, VMI_ERROR_ILLEGAL_ARG = 5, VMI_ERROR_READ_ONLY = 6 } |
Enumeration of all possible return codes from VM interface functions. More... | |
enum | vmiVersion { VMI_VERSION_UNKNOWN = 0x00000000, VMI_VERSION_1_0 = 0x00010000 } |
VM interface version identifier. More... | |
Functions | |
VMInterface *JNICALL | VMI_GetVMIFromJNIEnv (JNIEnv *env) |
Extract the VM interface from a JNIEnv. | |
VMInterface *JNICALL | VMI_GetVMIFromJavaVM (JavaVM *vm) |
Extract the VM interface from a JNI JavaVM. | |
vmiError JNICALL | CheckVersion (VMInterface *vmi, vmiVersion *version) |
Check the version of the VM interface. | |
vmiError JNICALL | GetSystemProperty (VMInterface *vmi, char *key, char **valuePtr) |
Retrieve the value of a VM system property. | |
vmiError JNICALL | SetSystemProperty (VMInterface *vmi, char *key, char *value) |
Override the value of a VM system property. | |
vmiError JNICALL | CountSystemProperties (VMInterface *vmi, int *countPtr) |
Return the number of VM system properties. | |
vmiError JNICALL | IterateSystemProperties (VMInterface *vmi, vmiSystemPropertyIterator iterator, void *userData) |
Iterate over the VM system properties calling a function. |
#define BOOTCLASSPATH_PROPERTY "org.apache.harmony.boot.class.path" |
Name of the property holding bootclasspath string.
#define VMI_ACCESS_FROM_ENV | ( | env | ) | VMInterface* privateVMI = VMI_GetVMIFromJNIEnv(env) |
Convenience macros for acquiring a VMInterface.
The VM interface structure.
Points to the VM interface function table. Implementations will likely choose to store opaque data off this structure.
enum vmiError |
Enumeration of all possible return codes from VM interface functions.
enum vmiVersion |
VMInterfaceFunctions_::CheckVersion | ( | VMInterface * | vmi, | |
vmiVersion * | version | |||
) |
Check the version of the VM interface.
vmiError JNICALL CheckVersion(VMInterface* vmi, vmiVersion* version);
[in] | vmi | The VM interface pointer |
[in,out] | version | Pass in the version to check, or VMI_VERSION_UNKNOWN. Returns the current version. |
VMInterfaceFunctions_::CountSystemProperties | ( | VMInterface * | vmi, | |
int * | countPtr | |||
) |
Return the number of VM system properties.
vmiError JNICALL CountSystemProperties(VMInterface* vmi, int* countPtr);
[in] | vmi | The VM interface pointer |
[out] | countPtr | The location to store the number of system properties |
VMInterfaceFunctions_::GetSystemProperty | ( | VMInterface * | vmi, | |
char * | key, | |||
char ** | valuePtr | |||
) |
Retrieve the value of a VM system property.
VMInterfaceFunctions_::IterateSystemProperties | ( | VMInterface * | vmi, | |
vmiSystemPropertyIterator | iterator, | |||
void * | userData | |||
) |
Iterate over the VM system properties calling a function.
[in] | vmi | The VM interface pointer |
[in] | iterator | The iterator function to call with each property |
[in] | userData | Opaque data to pass to the iterator function |
See GetSystemProperty() for the list of properties that must be defined by the vm.
VMInterfaceFunctions_::SetSystemProperty | ( | VMInterface * | vmi, | |
char * | key, | |||
char * | value | |||
) |
Override the value of a VM system property.
vmiError JNICALL SetSystemProperty(VMInterface* vmi, char* key, char* value);
[in] | vmi | The VM interface pointer |
[in] | key | The system property to override |
[in] | value | The value of the system property |
See GetSystemProperty() for the list of properties that must be defined by the vm.
VMInterface* JNICALL VMI_GetVMIFromJavaVM | ( | JavaVM * | vm | ) |
Extract the VM interface from a JNI JavaVM.
Extract the VM interface from a JNI JavaVM.
This stub implementation is non-functional, provided for the purposes of building the dependent natives. Extract the VM Interface from a JNI JavaVM
[in] | vm | The JavaVM to query |
VMInterface* JNICALL VMI_GetVMIFromJNIEnv | ( | JNIEnv * | env | ) |
Extract the VM interface from a JNIEnv.
Extract the VM interface from a JNIEnv.
[in] | env | The JNIEnv to query |
Genereated on Tue Dec 9 14:12:59 2008 by Doxygen.
(c) Copyright 2005, 2008 The Apache Software Foundation or its licensors, as applicable.