| 61 | } |
| 62 | |
| 63 | OSVR_ReturnCode osvrDeviceSendTimestampedData( |
| 64 | OSVR_IN_PTR OSVR_DeviceToken dev, OSVR_IN_PTR OSVR_TimeValue *timestamp, |
| 65 | OSVR_IN_PTR OSVR_MessageType msg, OSVR_IN_READS(len) const char *bytestream, |
| 66 | OSVR_IN size_t len) { |
| 67 | OSVR_DEV_VERBOSE( |
| 68 | "In osvrDeviceSendData, trying to send a timestamped message of length " |
| 69 | << len); |
| 70 | OSVR_PLUGIN_HANDLE_NULL_CONTEXT("osvrDeviceSendData device token", dev); |
| 71 | OSVR_PLUGIN_HANDLE_NULL_CONTEXT("osvrDeviceSendData message type", msg); |
| 72 | dev->sendData(*timestamp, msg, bytestream, len); |
| 73 | return OSVR_RETURN_SUCCESS; |
| 74 | } |
| 75 | |
| 76 | OSVR_ReturnCode osvrDeviceSendJsonDescriptor(OSVR_IN_PTR OSVR_DeviceToken dev, |
| 77 | OSVR_IN_READS(len) |