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

Function osvrDeviceSendJsonDescriptor

src/osvr/PluginKit/DeviceInterfaceC.cpp:76–86  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

74}
75
76OSVR_ReturnCode osvrDeviceSendJsonDescriptor(OSVR_IN_PTR OSVR_DeviceToken dev,
77 OSVR_IN_READS(len)
78 const char *json,
79 OSVR_IN size_t len) {
80 OSVR_PLUGIN_HANDLE_NULL_CONTEXT("osvrDeviceSendJsonDescriptor", dev);
81 OSVR_PLUGIN_HANDLE_NULL_CONTEXT("osvrDeviceSendJsonDescriptor descriptor",
82 json);
83
84 dev->setDeviceDescriptor(std::string(json, len));
85 return OSVR_RETURN_SUCCESS;
86}
87
88OSVR_ReturnCode
89osvrDeviceRegisterMessageType(OSVR_IN_PTR OSVR_PluginRegContext ctx,

Callers 1

sendJsonDescriptorMethod · 0.85

Calls 1

setDeviceDescriptorMethod · 0.45

Tested by

no test coverage detected