#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) |
Standard startup and shutdown (port library allocated on stack or by application). | |
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) |
Port library self allocation routines. | |
void | initNLSCatalog (HyPortLibrary *portLib) |
Initialize the NLS catalog (must be done prior to any NLS usage). |
|
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.
|
|
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
|
|
Determine the size of the port library. Given a port library version, return the size of the structure in bytes required to be allocated.
|
|
Determine the version of the port library. Given a port library return the version of that instance.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
Initialize the NLS catalog (must be done prior to any NLS usage).
|