VMInterfaceFunctions_ Struct Reference

#include <vmi.h>

List of all members.


Detailed Description

The VM interface function table.

Example usage:

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


Public Member Functions

 vmiError (JNICALL *CheckVersion)(VMInterface *vmi
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)
 ifndef HY_ZIP_API
JavaVMInitArgs *JNICALL * GetInitArgs (VMInterface *vmi)
 Return a pointer to a JavaVMInitArgs structure as defined by the 1.2 JNI specification.
 vmiError (JNICALL *GetSystemProperty)(VMInterface *vmi
 vmiError (JNICALL *SetSystemProperty)(VMInterface *vmi
 vmiError (JNICALL *CountSystemProperties)(VMInterface *vmi
 vmiError (JNICALL *IterateSystemProperties)(VMInterface *vmi

Public Attributes

vmiVersionversion
char * key
char char ** valuePtr
char * key
char char * value
int * countPtr
vmiSystemPropertyIterator iterator
vmiSystemPropertyIterator
void * 
userData


Member Function Documentation

VMInterfaceFunctions_.vmiError ( JNICALL *  CheckVersion  ) 

VMInterfaceFunctions_::GetJavaVM ( VMInterface vmi  ) 

Return the JNI JavaVM associated with the VM interface.

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

VMInterfaceFunctions_::GetPortLibrary ( VMInterface vmi  ) 

Return a pointer to an initialized HyPortLibrary structure.

 HyPortLibrary* JNICALL GetPortLibrary(VMInterface* vmi); 

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  ) 

ifndef HY_ZIP_API

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(). else

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.

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

VMInterfaceFunctions_.vmiError ( JNICALL *  GetSystemProperty  ) 

VMInterfaceFunctions_.vmiError ( JNICALL *  SetSystemProperty  ) 

VMInterfaceFunctions_.vmiError ( JNICALL *  CountSystemProperties  ) 

VMInterfaceFunctions_.vmiError ( JNICALL *  IterateSystemProperties  ) 


Member Data Documentation

vmiVersion* VMInterfaceFunctions_.version

char* VMInterfaceFunctions_.key

char char** VMInterfaceFunctions_.valuePtr

char* VMInterfaceFunctions_.key

char char* VMInterfaceFunctions_.value

int* VMInterfaceFunctions_.countPtr

vmiSystemPropertyIterator VMInterfaceFunctions_.iterator

vmiSystemPropertyIterator void* VMInterfaceFunctions_.userData


The documentation for this struct was generated from the following file:

Genereated on Tue Mar 11 19:25:27 2008 by Doxygen.

(c) Copyright 2005, 2008 The Apache Software Foundation or its licensors, as applicable.