| 331 | } |
| 332 | |
| 333 | int is_prepared (int *prepared, int board_id, const char *json_brainflow_input_params) |
| 334 | { |
| 335 | std::lock_guard<std::mutex> lock (mutex); |
| 336 | |
| 337 | std::pair<int, struct BrainFlowInputParams> key; |
| 338 | int res = check_board_session (board_id, json_brainflow_input_params, key, false); |
| 339 | if (res == (int)BrainFlowExitCodes::STATUS_OK) |
| 340 | { |
| 341 | *prepared = 1; |
| 342 | } |
| 343 | if (res == (int)BrainFlowExitCodes::BOARD_NOT_CREATED_ERROR) |
| 344 | { |
| 345 | *prepared = 0; |
| 346 | res = (int)BrainFlowExitCodes::STATUS_OK; |
| 347 | } |
| 348 | return res; |
| 349 | } |
| 350 | |
| 351 | int start_stream (int buffer_size, const char *streamer_params, int board_id, |
| 352 | const char *json_brainflow_input_params) |
no test coverage detected