Main Page | Modules | Class Hierarchy | Data Structures | Directories | File List | Data Fields | Globals | Related Pages

VMInterfaceFunctions_ Struct Reference

#include <vmi.h>


Detailed Description

The VM interface function table.

Example usage:

 JavaVM* vm = (*vmi)->GetJavaVM(vmi);


Public Member Functions

JavaVM *JNICALL * GetJavaVM (VMInterface *vmi)
 Return the JNI JavaVM associated with the VM interface.
HyPortLibrary *JNICALL * GetPortLibrary (VMInterface *vmi)
 Return a pointer to an initialized HyPortLibrary structure.
HyVMLSFunctionTable *JNICALL * GetVMLSFunctions (VMInterface *vmi)
 Return a pointer to a HyVMLSFunctionTable.
HyZipCachePool *JNICALL * GetZipCachePool (VMInterface *vmi)
 Return a pointer to the HyZipCachePool structure used by the VM.
JavaVMInitArgs *JNICALL * GetInitArgs (VMInterface *vmi)
 Return a pointer to a JavaVMInitArgs structure as defined by the 1.2 JNI specification.


Member Function Documentation

VMInterfaceFunctions_::GetInitArgs VMInterface vmi  ) 
 

Return a pointer to a JavaVMInitArgs structure as defined by the 1.2 JNI specification.

This structure contains the arguments used to invoke the vm.

 JavaVMInitArgs* JNICALL GetInitArgs(VMInterface* vmi); 

Parameters:
[in] vmi The VM interface pointer
Returns:
the VM invocation arguments

VMInterfaceFunctions_::GetJavaVM VMInterface vmi  ) 
 

Return the JNI JavaVM associated with the VM interface.

 JavaVM* JNICALL GetJavaVM(VMInterface* vmi); 

Parameters:
[in] vmi The VM interface pointer
Returns:
a JavaVM pointer

VMInterfaceFunctions_::GetPortLibrary VMInterface vmi  ) 
 

Return a pointer to an initialized HyPortLibrary structure.

The port library is a table of functions that implement useful platform specific capability. For example, file and socket manipulation, memory management, etc. It is the responsibility of the VM to create the port library.

Parameters:
[in] vmi The VM interface pointer
Returns:
the HyPortLibrary associated with the VMI
See also:
hyport.c

VMInterfaceFunctions_::GetVMLSFunctions VMInterface vmi  ) 
 

Return a pointer to a HyVMLSFunctionTable.

This is a table of functions for allocating, freeing, getting, and setting thread local storage.

Parameters:
[in] vmi The VM interface pointer
Returns:
the VM local storage function table

VMInterfaceFunctions_::GetZipCachePool VMInterface vmi  ) 
 

Return a pointer to the HyZipCachePool structure used by the VM.

It is the responsibility of the vm to allocate the pool using zipCachePool_new().

 HyZipCachePool* JNICALL GetZipCachePool(VMInterface* vmi); 

Parameters:
[in] vmi The VM interface pointer
Returns:
a HyZipCachePool pointer


The documentation for this struct was generated from the following file:
(c) Copyright 2005 The Apache Software Foundation or its licensors, as applicable.