10 #ifndef _STRUS_MODULE_HEADER_HPP_INCLUDED
11 #define _STRUS_MODULE_HEADER_HPP_INCLUDED
12 #include "strus/versionModule.hpp"
50 explicit ModuleEntryPoint(
Type type_,
unsigned short version_major,
unsigned short version_minor,
const char* version_3rdparty_=0,
const char* license_3rdparty_=0)
53 const char* declaration_signature = STRUS_MODULE_SIGNATURE;
56 std::memcpy(
signature, declaration_signature, std::strlen( declaration_signature));
char signature[8]
signature of the module (string + major version)
Definition: moduleEntryPoint.hpp:40
ModuleEntryPoint(Type type_, unsigned short version_major, unsigned short version_minor, const char *version_3rdparty_=0, const char *license_3rdparty_=0)
Constructor for derived classes.
Definition: moduleEntryPoint.hpp:50
the signature (composition of a string and the major module version number) does not match ...
Definition: moduleEntryPoint.hpp:32
unsigned int _reserved[6]
reserved for future use
Definition: moduleEntryPoint.hpp:45
Type type
type of the module
Definition: moduleEntryPoint.hpp:41
Entry point of a module with signature and version info to verify correctness of the dynamic linking...
Definition: moduleEntryPoint.hpp:19
module exporting objects for document and query analysis (moduleAnalyzer)
Definition: moduleEntryPoint.hpp:24
Definition: moduleEntryPoint.hpp:36
static void closeHandle(Handle &hnd)
Definition: moduleEntryPoint.hpp:37
void * Handle
Definition: moduleEntryPoint.hpp:76
the 'type' field has an unknown value
Definition: moduleEntryPoint.hpp:31
the components implemented in the module have a major version number than expected ...
Definition: moduleEntryPoint.hpp:34
bool(* MatchModuleVersionFunc)(const ModuleEntryPoint *entryPoint, int &errorcode)
Definition: moduleEntryPoint.hpp:84
the components minor version is smaller than required. The module may not implement the objects loade...
Definition: moduleEntryPoint.hpp:35
module exporting objects for storage and query evaluation (moduleStorage)
Definition: moduleEntryPoint.hpp:25
const char * version_3rdparty
3rd party version info
Definition: moduleEntryPoint.hpp:46
unsigned short compversion_minor
minor version of components in the module
Definition: moduleEntryPoint.hpp:44
Definition: moduleEntryPoint.hpp:62
char errormsg[256]
Definition: moduleEntryPoint.hpp:73
the loaded module minor version is higher than the one of the module loader. This means that the modu...
Definition: moduleEntryPoint.hpp:33
const ModuleEntryPoint * loadModuleEntryPoint(const char *modfilename, ModuleEntryPoint::Status &status, ModuleEntryPoint::Handle &hnd, MatchModuleVersionFunc)
const char * license_3rdparty
3rd party license text
Definition: moduleEntryPoint.hpp:47
int errorcode
Definition: moduleEntryPoint.hpp:72
module exporting objects for method call trace generation (moduleTrace)
Definition: moduleEntryPoint.hpp:26
bool ok() const
Definition: moduleEntryPoint.hpp:70
unsigned short modversion_minor
minor version of the module
Definition: moduleEntryPoint.hpp:42
Type
The module types supported.
Definition: moduleEntryPoint.hpp:22
Status()
Definition: moduleEntryPoint.hpp:64
unsigned short compversion_major
major version of components in the module
Definition: moduleEntryPoint.hpp:43
no error
Definition: moduleEntryPoint.hpp:30