Commit 5a5e12df authored by Ronan's avatar Ronan
Browse files

feat(c-tools): add const versions of `getCppPtr`

parent e7806485
......@@ -133,6 +133,16 @@ public:
return cppPtr;
}
template<typename T>
static const T *getCppPtr (const std::shared_ptr<const T> &cppPtr) {
return cppPtr.get();
}
template<typename T>
static const T *getCppPtr (const T *cppPtr) {
return cppPtr;
}
template<typename CType, typename CppType>
static inline CType * getCBackPtr (const std::shared_ptr<CppType> &object, CType *(*cTypeAllocator)()) {
Variant v = object->getProperty("LinphonePrivate::Wrapper::cBackPtr");
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment