| 69 | } |
| 70 | |
| 71 | ClientInterfacePtr OSVR_ClientContextObject::getInterface(const char path[]) { |
| 72 | ClientInterfacePtr ret; |
| 73 | if (!path) { |
| 74 | return ret; |
| 75 | } |
| 76 | std::string p(path); |
| 77 | if (p.empty()) { |
| 78 | return ret; |
| 79 | } |
| 80 | ret = make_shared<ClientInterface>(this, path, |
| 81 | ClientInterface::PrivateConstructor()); |
| 82 | m_handleNewInterface(ret); |
| 83 | m_interfaces.push_back(ret); |
| 84 | return ret; |
| 85 | } |
| 86 | |
| 87 | ClientInterfacePtr |
| 88 | OSVR_ClientContextObject::releaseInterface(ClientInterface *iface) { |
no test coverage detected