#include <string.h>
#include "hyport.h"
#include "portpriv.h"
#include "hyportpg.h"
Functions | |
| I_32 VMCALL | hyport_init_library (struct HyPortLibrary *portLibrary, struct HyPortLibraryVersion *version, UDATA size) |
| Initialize the port library. | |
| I_32 VMCALL | hyport_shutdown_library (struct HyPortLibrary *portLibrary) |
| PortLibrary shutdown. | |
| I_32 VMCALL | hyport_create_library (struct HyPortLibrary *portLibrary, struct HyPortLibraryVersion *version, UDATA size) |
| Create the port library. | |
| I_32 VMCALL | hyport_startup_library (struct HyPortLibrary *portLibrary) |
| PortLibrary startup. | |
| UDATA VMCALL | hyport_getSize (struct HyPortLibraryVersion *version) |
| Determine the size of the port library. | |
| I_32 VMCALL | hyport_getVersion (struct HyPortLibrary *portLibrary, struct HyPortLibraryVersion *version) |
| Determine the version of the port library. | |
| I_32 VMCALL | hyport_isCompatible (struct HyPortLibraryVersion *expectedVersion) |
| Determine port library compatibility. | |
| I_32 VMCALL | hyport_isFunctionOverridden (struct HyPortLibrary *portLibrary, UDATA offset) |
| Query the port library. | |
| I_32 VMCALL | hyport_allocate_library (struct HyPortLibraryVersion *version, struct HyPortLibrary **portLibrary) |
| Allocate a port library. | |
| void | initNLSCatalog (HyPortLibrary *portLib) |
| Initialize the NLS catalog (must be done prior to any NLS usage). | |
| I_32 VMCALL hyport_allocate_library | ( | struct HyPortLibraryVersion * | version, | |
| struct HyPortLibrary ** | portLibrary | |||
| ) |
Allocate a port library.
Port library self allocation routines.
Given a pointer to the required version of the port library allocate and initialize the structure. The startup function is not called (hyport_startup_library) allowing the application to override any functions they desire. In the event hyport_startup_library fails when called by the application the port library memory will be freed.
| [in] | version | The required version of the port library. |
| [out] | portLibrary | Pointer to the allocated port library table. |
The portlibrary version must be compatabile with the that which we are compiled against
hyport_shutdown_library will deallocate this memory as part of regular shutdown
| I_32 VMCALL hyport_create_library | ( | struct HyPortLibrary * | portLibrary, | |
| struct HyPortLibraryVersion * | version, | |||
| UDATA | size | |||
| ) |
Create the port library.
Standard startup and shutdown (port library allocated on stack or by application).
Given a pointer to a port library and the required version, populate the port library table with the appropriate functions
| [in] | portLibrary | The port library. |
| [in] | version | The required version of the port library. |
| [in] | size | Size of the port library. |
| UDATA VMCALL hyport_getSize | ( | struct HyPortLibraryVersion * | version | ) |
Determine the size of the port library.
Given a port library version, return the size of the structure in bytes required to be allocated.
| [in] | version | The HyPortLibraryVersion structure. |
| I_32 VMCALL hyport_getVersion | ( | struct HyPortLibrary * | portLibrary, | |
| struct HyPortLibraryVersion * | version | |||
| ) |
Determine the version of the port library.
Given a port library return the version of that instance.
| [in] | portLibrary | The port library. |
| [in,out] | version | The HyPortLibraryVersion structure to be populated. |
| I_32 VMCALL hyport_init_library | ( | struct HyPortLibrary * | portLibrary, | |
| struct HyPortLibraryVersion * | version, | |||
| UDATA | size | |||
| ) |
Initialize the port library.
Given a pointer to a port library and the required version, populate the port library table with the appropriate functions and then call the startup function for the port library.
| [in] | portLibrary | The port library. |
| [in] | version | The required version of the port library. |
| [in] | size | Size of the port library. |
| I_32 VMCALL hyport_isCompatible | ( | struct HyPortLibraryVersion * | expectedVersion | ) |
Determine port library compatibility.
Given the minimum version of the port library that the application requires determine if the current port library meets that requirements.
| [in] | expectedVersion | The version the application requires as a minimum. |
| I_32 VMCALL hyport_isFunctionOverridden | ( | struct HyPortLibrary * | portLibrary, | |
| UDATA | offset | |||
| ) |
Query the port library.
Given a pointer to the port library and an offset into the table determine if the function at that offset has been overridden from the default value expected.
| [in] | portLibrary | The port library. |
| [in] | offset | The offset of the function to be queried. |
| I_32 VMCALL hyport_shutdown_library | ( | struct HyPortLibrary * | portLibrary | ) |
PortLibrary shutdown.
Shutdown the port library, de-allocate resources required by the components of the portlibrary. Any resources that werer created by hyport_startup_library should be destroyed here.
| [in] | portLibrary | The portlibrary. |
| I_32 VMCALL hyport_startup_library | ( | struct HyPortLibrary * | portLibrary | ) |
PortLibrary startup.
Start the port library, allocate resources required by the components of the portlibrary. All resources created here should be destroyed in hyport_shutdown_library.
| [in] | portLibrary | The portlibrary. |
| void initNLSCatalog | ( | HyPortLibrary * | portLib | ) |
Initialize the NLS catalog (must be done prior to any NLS usage).
Genereated on Tue Dec 9 14:12:59 2008 by Doxygen.
(c) Copyright 2005, 2008 The Apache Software Foundation or its licensors, as applicable.