#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. | |
Typedefs | |
typedef const 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_NOT_FOUND = 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. |
|
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. |
|
|
VM interface version identifier.
|
|
Check the version of the VM interface.
vmiError JNICALL CheckVersion(VMInterface* vmi, vmiVersion* version);
|
|
Return the number of VM system properties.
vmiError JNICALL CountSystemProperties(VMInterface* vmi, int* countPtr);
|
|
Retrieve the value of a VM system property.
|
|
Iterate over the VM system properties calling a function.
|
|
Override the value of a VM system property.
vmiError JNICALL SetSystemProperty(VMInterface* vmi, char* key, char* value);
|
|
Extract the VM interface from a JNI JavaVM.
|
|
Extract the VM interface from a JNIEnv.
|