Classes | |
struct | VMInterfaceFunctions_ |
The VM interface function table. More... | |
Defines | |
#define | vmi_h |
#define | USING_VMI |
#define | VMI_ACCESS_FROM_ENV(env) VMInterface* privateVMI = VMI_GetVMIFromJNIEnv(env) |
Convenience macros for acquiring a VMInterface. | |
#define | VMI_ACCESS_FROM_JAVAVM(javaVM) VMInterface* privateVMI = VMI_GetVMIFromJavaVM(javaVM) |
#define | VMI privateVMI |
#define | BOOTCLASSPATH_PROPERTY "org.apache.harmony.boot.class.path" |
Name of the property holding bootclasspath string. | |
Typedefs | |
typedef char * | value |
typedef char void * | userData |
typedef 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, vmiErrorEnsureWideEnum = 0x1000000 } |
Enumeration of all possible return codes from VM interface functions. More... | |
enum | vmiVersion { VMI_VERSION_UNKNOWN = 0x00000000, VMI_VERSION_1_0 = 0x00010000, vmiVersionEnsureWideEnum = 0x1000000 } |
VM interface version identifier. More... | |
Functions | |
typedef | void (JNICALL *vmiSystemPropertyIterator)(char *key |
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. | |
JavaVM *JNICALL | GetJavaVM (VMInterface *vmi) |
HyPortLibrary *JNICALL | GetPortLibrary (VMInterface *vmi) |
HyVMLSFunctionTable *JNICALL | GetVMLSFunctions (VMInterface *vmi) |
HyZipCachePool *JNICALL | GetZipCachePool (VMInterface *vmi) |
JavaVMInitArgs *JNICALL | GetInitArgs (VMInterface *vmi) |
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 vmi_h |
#define USING_VMI |
#define VMI_ACCESS_FROM_ENV | ( | env | ) | VMInterface* privateVMI = VMI_GetVMIFromJNIEnv(env) |
Convenience macros for acquiring a VMInterface.
#define VMI_ACCESS_FROM_JAVAVM | ( | javaVM | ) | VMInterface* privateVMI = VMI_GetVMIFromJavaVM(javaVM) |
#define VMI privateVMI |
#define BOOTCLASSPATH_PROPERTY "org.apache.harmony.boot.class.path" |
Name of the property holding bootclasspath string.
typedef char* value |
typedef char void* userData |
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 |
typedef void | ( | JNICALL * | vmiSystemPropertyIterator | ) |
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.
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. |
JavaVM* JNICALL GetJavaVM | ( | VMInterface * | vmi | ) |
HyPortLibrary* JNICALL GetPortLibrary | ( | VMInterface * | vmi | ) |
HyVMLSFunctionTable* JNICALL GetVMLSFunctions | ( | VMInterface * | vmi | ) |
HyZipCachePool* JNICALL GetZipCachePool | ( | VMInterface * | vmi | ) |
JavaVMInitArgs* JNICALL GetInitArgs | ( | VMInterface * | vmi | ) |
VMInterfaceFunctions_::GetSystemProperty | ( | VMInterface * | vmi, | |
char * | key, | |||
char ** | valuePtr | |||
) |
Retrieve the value of a VM system property.
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.
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_::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.
Genereated on Tue Mar 11 19:26:07 2008 by Doxygen.
(c) Copyright 2005, 2008 The Apache Software Foundation or its licensors, as applicable.