| 122 | "Must pass a valid display input index.") |
| 123 | |
| 124 | OSVR_ReturnCode osvrClientFreeDisplay(OSVR_DisplayConfig disp) { |
| 125 | OSVR_VALIDATE_DISPLAY_CONFIG; |
| 126 | OSVR_ClientContext ctx = disp->ctx; |
| 127 | BOOST_ASSERT_MSG( |
| 128 | ctx != nullptr, |
| 129 | "Should never get a display config object with a null context in it."); |
| 130 | if (nullptr == ctx) { |
| 131 | return OSVR_RETURN_FAILURE; |
| 132 | } |
| 133 | auto freed = ctx->releaseObject(disp); |
| 134 | return freed ? OSVR_RETURN_SUCCESS : OSVR_RETURN_FAILURE; |
| 135 | } |
| 136 | |
| 137 | OSVR_ReturnCode osvrClientCheckDisplayStartup(OSVR_DisplayConfig disp) { |
| 138 | OSVR_VALIDATE_DISPLAY_CONFIG; |