Pass mgp_memory to custom Module.main_fn
Summary: Depends on D2495 Reviewers: mferencevic, dsantl Reviewed By: mferencevic Subscribers: pullbot Differential Revision: https://phabricator.memgraph.io/D2496
This commit is contained in:
@@ -22,8 +22,8 @@ std::optional<Module> LoadModuleFromSharedLibrary(std::filesystem::path path) {
|
||||
return std::nullopt;
|
||||
}
|
||||
// Get required mgp_main
|
||||
module.main_fn = reinterpret_cast<void (*)(const mgp_list *,
|
||||
const mgp_graph *, mgp_result *)>(
|
||||
module.main_fn = reinterpret_cast<void (*)(
|
||||
const mgp_list *, const mgp_graph *, mgp_result *, mgp_memory *)>(
|
||||
dlsym(module.handle, "mgp_main"));
|
||||
const char *error = dlerror();
|
||||
if (!module.main_fn || error) {
|
||||
|
||||
Reference in New Issue
Block a user