ReXGlue SDK
Loading...
Searching...
No Matches
generated_symbols.h File Reference

Symbols that generated code and module libraries export. More...

Go to the source code of this file.

Functions

void ReXRegisterModule (rex::kernel::IFunctionRegistrar *registrar)
const rex::ppc::PPCImage * ReXGetModuleImage ()
void RegisterRecompiledModules (rex::kernel::IModuleRegistry &modules)
const char * ReXBuildIdentity ()
rex::IInterface * ReXCreateInterface (const char *name, rex::u32 version)
rex::u32 ReXEnumerateInterfaces (rex::InterfaceType *out, rex::u32 capacity)

Variables

const rex::ppc::PPCImage kPPCImageConfig
const rex::ppc::PPCCallUsage kPPCCallUsage []

Detailed Description

Symbols that generated code and module libraries export.

License
BSD 3-Clause License See LICENSE file in the project root for full license text.

Documentation only. The templates codegen/init_cpp.inja, codegen/register_cpp.inja and codegen/module_registry_cpp.inja write the real definitions, and nothing includes this file.

Function Documentation

◆ RegisterRecompiledModules()

void RegisterRecompiledModules ( rex::kernel::IModuleRegistry & modules)

Registers every DLL module of the project with the module registry. Defined in module_registry.cpp of the entrypoint folder.

Parameters
modulesThe module registry.

◆ ReXBuildIdentity()

const char * ReXBuildIdentity ( )

Returns the identity of the SDK build that a module was compiled against. REX_DECLARE_MODULE defines it, and the loader loads the module only when the identity equals its own.

Returns
The build identity string.

◆ ReXCreateInterface()

rex::IInterface * ReXCreateInterface ( const char * name,
rex::u32 version )

Returns the interface pointer for a name and version. REX_DECLARE_MODULE defines it.

Parameters
nameThe interface name.
versionThe interface version.
Returns
The interface pointer, or null when the module serves no such interface.

◆ ReXEnumerateInterfaces()

rex::u32 ReXEnumerateInterfaces ( rex::InterfaceType * out,
rex::u32 capacity )

Lists the interfaces that a module serves, as REX_MODULE_SERVES declares them. REX_DECLARE_MODULE defines it.

Parameters
outReceives the descriptions, or null to only count.
capacityThe number of descriptions out holds.
Returns
The number of interfaces the module serves.

◆ ReXGetModuleImage()

const rex::ppc::PPCImage * ReXGetModuleImage ( )

Returns the image of a DLL module. Defined in <p>_register.cpp of a DLL module.

Returns
The module image.

◆ ReXRegisterModule()

void ReXRegisterModule ( rex::kernel::IFunctionRegistrar * registrar)

Registers the recompiled functions of a DLL module. Defined in <p>_register.cpp.

Parameters
registrarThe registrar that receives the function mappings.

Variable Documentation

◆ kPPCCallUsage

const rex::ppc::PPCCallUsage kPPCCallUsage[]
extern

The argument registers that each function reads at entry, r3 to r10 and f1 to f13, ending with an entry of zeros.

◆ kPPCImageConfig

const rex::ppc::PPCImage kPPCImageConfig
extern

The image of a binary, defined in <p>_init.cpp. The host program passes it to the application.