Go to the source code of this file.
◆ JEVOIS_DISABLED_MODULE
#define JEVOIS_DISABLED_MODULE |
( |
|
MODULENAME | ) |
|
Value:
public: \
MODULENAME(std::string
const & instancename) :
jevois::Module(instancename) \
{ throw std::runtime_error("This module is disabled on your hardware configuration"); } \
}; \
extern "C" std::shared_ptr<jevois::Module> MODULENAME##_create(std::string const & instanceid) \
{ return std::shared_ptr<jevois::Module>(new MODULENAME(instanceid)); } \
extern "C" int MODULENAME##_version_major() { return JEVOIS_VERSION_MAJOR; } \
extern "C" int MODULENAME##_version_minor() { return JEVOIS_VERSION_MINOR; } \
Create and register a disabled module, allowing it to be dynamically loaded from a .so file.
Definition at line 377 of file Module.H.
◆ JEVOIS_REGISTER_MODULE
#define JEVOIS_REGISTER_MODULE |
( |
|
MODULENAME | ) |
|
Value: extern "C" std::shared_ptr<jevois::Module> MODULENAME##_create(std::string const & instanceid) \
{ return std::shared_ptr<jevois::Module>(new MODULENAME(instanceid)); } \
extern "C" int MODULENAME##_version_major() { return JEVOIS_VERSION_MAJOR; } \
extern "C" int MODULENAME##_version_minor() { return JEVOIS_VERSION_MINOR; } \
Register a module, allowing it to be dynamically loaded from a .so file.
Definition at line 353 of file Module.H.