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

Function osvrClientGetInterface

src/osvr/ClientKit/InterfaceC.cpp:37–51  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

35// - none
36
37OSVR_ReturnCode osvrClientGetInterface(OSVR_ClientContext ctx,
38 const char path[],
39 OSVR_ClientInterface *iface) {
40 if (nullptr == ctx) {
41 /// Return failure if given a null context
42 return OSVR_RETURN_FAILURE;
43 }
44 osvr::common::tracing::markGetInterface(path);
45 osvr::common::ClientInterfacePtr ret = ctx->getInterface(path);
46 if (ret) {
47 *iface = ret.get();
48 return OSVR_RETURN_SUCCESS;
49 }
50 return OSVR_RETURN_FAILURE;
51}
52
53OSVR_ReturnCode osvrClientFreeInterface(OSVR_ClientContext ctx,
54 OSVR_ClientInterface iface) {

Callers 7

TESTFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85
getInterfaceMethod · 0.85

Calls 3

markGetInterfaceFunction · 0.85
getInterfaceMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected