| 285 | } |
| 286 | |
| 287 | int DynLibBoard::call_close () |
| 288 | { |
| 289 | if (dll_loader == NULL) |
| 290 | { |
| 291 | return (int)BrainFlowExitCodes::BOARD_NOT_READY_ERROR; |
| 292 | } |
| 293 | int (*func) (void *) = (int (*) (void *))dll_loader->get_address ("close_device"); |
| 294 | if (func == NULL) |
| 295 | { |
| 296 | safe_logger (spdlog::level::err, "failed to get function address for close_device"); |
| 297 | return (int)BrainFlowExitCodes::GENERAL_ERROR; |
| 298 | } |
| 299 | return func (NULL); |
| 300 | } |
| 301 | |
| 302 | int DynLibBoard::call_release () |
| 303 | { |
nothing calls this directly
no test coverage detected