| 846 | } |
| 847 | |
| 848 | int Ganglion::call_release () |
| 849 | { |
| 850 | if (dll_loader == NULL) |
| 851 | { |
| 852 | return (int)BrainFlowExitCodes::BOARD_NOT_READY_ERROR; |
| 853 | } |
| 854 | int (*func) (void *) = (int (*) (void *))dll_loader->get_address ("release"); |
| 855 | if (func == NULL) |
| 856 | { |
| 857 | safe_logger (spdlog::level::err, "failed to get function address for release"); |
| 858 | return (int)BrainFlowExitCodes::GENERAL_ERROR; |
| 859 | } |
| 860 | |
| 861 | int res = func (NULL); |
| 862 | if (res != (int)GanglionLib::CustomExitCodes::STATUS_OK) |
| 863 | { |
| 864 | safe_logger (spdlog::level::err, "failed to release ganglion library {}", res); |
| 865 | return (int)BrainFlowExitCodes::GENERAL_ERROR; |
| 866 | } |
| 867 | return (int)BrainFlowExitCodes::STATUS_OK; |
| 868 | } |
nothing calls this directly
no test coverage detected