mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-17 19:18:06 +00:00
feat(c-tools): add const versions of getCppPtr
This commit is contained in:
parent
e78064859a
commit
5a5e12dfae
1 changed files with 10 additions and 0 deletions
|
|
@ -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");
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue