MCPcopy Create free account
hub / github.com/brainflow-dev/brainflow / call_release

Method call_release

src/board_controller/openbci/ganglion.cpp:848–868  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

846}
847
848int 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}

Callers

nothing calls this directly

Calls 1

get_addressMethod · 0.45

Tested by

no test coverage detected