| 33 | } |
| 34 | |
| 35 | std::string BrainBitBLED::get_lib_name () |
| 36 | { |
| 37 | std::string brainbitlib_path = ""; |
| 38 | std::string brainbitlib_name = ""; |
| 39 | char brainbitlib_dir[1024]; |
| 40 | bool res = get_dll_path (brainbitlib_dir); |
| 41 | |
| 42 | #ifdef _WIN32 |
| 43 | if (sizeof (void *) == 4) |
| 44 | { |
| 45 | brainbitlib_name = "BrainBitLib32.dll"; |
| 46 | } |
| 47 | else |
| 48 | { |
| 49 | brainbitlib_name = "BrainBitLib.dll"; |
| 50 | } |
| 51 | #endif |
| 52 | #ifdef __linux__ |
| 53 | brainbitlib_name = "libBrainBitLib.so"; |
| 54 | #endif |
| 55 | #ifdef __APPLE__ |
| 56 | brainbitlib_name = "libBrainBitLib.dylib"; |
| 57 | #endif |
| 58 | |
| 59 | if (res) |
| 60 | { |
| 61 | brainbitlib_path = std::string (brainbitlib_dir) + brainbitlib_name; |
| 62 | } |
| 63 | else |
| 64 | { |
| 65 | brainbitlib_path = brainbitlib_name; |
| 66 | } |
| 67 | return brainbitlib_path; |
| 68 | } |
| 69 | |
| 70 | int BrainBitBLED::prepare_session () |
| 71 | { |
nothing calls this directly
no test coverage detected