MCPcopy Create free account
hub / github.com/OSVR/OSVR-Core / osvrDeviceSendTimestampedData

Function osvrDeviceSendTimestampedData

src/osvr/PluginKit/DeviceInterfaceC.cpp:63–74  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

61}
62
63OSVR_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
76OSVR_ReturnCode osvrDeviceSendJsonDescriptor(OSVR_IN_PTR OSVR_DeviceToken dev,
77 OSVR_IN_READS(len)

Callers 1

sendDataMethod · 0.85

Calls 1

sendDataMethod · 0.45

Tested by

no test coverage detected