diff --git a/src/identity.cc b/src/identity.cc index cf09767..927e0b7 100644 --- a/src/identity.cc +++ b/src/identity.cc @@ -22,6 +22,12 @@ namespace pEp { ::free_identity(id); } + + template<> + ::pEp_identity* Wrapper<::pEp_identity*>::copy_out() + { + return identity_dup(value); + } ////////////// diff --git a/src/wrapper.hh b/src/wrapper.hh index caa44c7..fddca32 100644 --- a/src/wrapper.hh +++ b/src/wrapper.hh @@ -100,6 +100,8 @@ public: const T* get() const { return value; } T* move_out() { T* r = value; value=nullptr; return r;} + + T* copy_out(); protected: