| 49 | } |
| 50 | |
| 51 | OSVR_ReturnCode osvrDeviceSendData(OSVR_IN_PTR OSVR_DeviceToken dev, |
| 52 | OSVR_IN_PTR OSVR_MessageType msg, |
| 53 | OSVR_IN_READS(len) const char *bytestream, |
| 54 | OSVR_IN size_t len) { |
| 55 | OSVR_DEV_VERBOSE( |
| 56 | "In osvrDeviceSendData, trying to send a message of length " << len); |
| 57 | OSVR_PLUGIN_HANDLE_NULL_CONTEXT("osvrDeviceSendData device token", dev); |
| 58 | OSVR_PLUGIN_HANDLE_NULL_CONTEXT("osvrDeviceSendData message type", msg); |
| 59 | dev->sendData(msg, bytestream, len); |
| 60 | return OSVR_RETURN_SUCCESS; |
| 61 | } |
| 62 | |
| 63 | OSVR_ReturnCode osvrDeviceSendTimestampedData( |
| 64 | OSVR_IN_PTR OSVR_DeviceToken dev, OSVR_IN_PTR OSVR_TimeValue *timestamp, |