Skip to content

Commit ef14938

Browse files
committed
add accessor for sys component to joint client context
1 parent d22c28b commit ef14938

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

src/osvr/JointClientKit/JointClientContext.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,10 @@ namespace client {
123123
return m_pathTree;
124124
}
125125

126+
common::SystemComponent *JointClientContext::m_getSystemComponent() {
127+
return m_systemComponent;
128+
}
129+
126130
bool JointClientContext::m_connectCallbacksOnPath(std::string const &path) {
127131
/// Start by removing handler from interface tree and handler container
128132
/// for this path, if found. Ensures that if we early-out (fail to set

src/osvr/JointClientKit/JointClientContext.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,8 @@ namespace client {
7676

7777
virtual common::PathTree const &m_getPathTree() const;
7878

79+
virtual osvr::common::SystemComponent *m_getSystemComponent();
80+
7981
/// @brief Given a path, remove any existing handler for that path, then
8082
/// attempt to fully resolve the path to its source and construct a
8183
/// handler for it.

0 commit comments

Comments
 (0)