| 1310 | } |
| 1311 | |
| 1312 | bool tsn_get_module_info(const char* module_name, tsn_module_info* output) { |
| 1313 | auto moduleInfo = tsn::ModuleRegistry::getInstance().getModuleInfo(std::string_view(module_name)); |
| 1314 | if (!moduleInfo) { |
| 1315 | return false; |
| 1316 | } |
| 1317 | output->name = moduleInfo.value().name; |
| 1318 | output->sha256 = moduleInfo.value().sha256; |
| 1319 | output->module_init_fn = moduleInfo.value().moduleInitFn; |
| 1320 | |
| 1321 | return true; |
| 1322 | } |
| 1323 | |
| 1324 | tsn_value tsn_load_module(tsn_vm* ctx, const char* module_name) { |
| 1325 | tsn_module_info module_info; |
no test coverage detected