|
|
@ -0,0 +1,28 @@ |
|
|
|
#include "types.hh"
|
|
|
|
|
|
|
|
namespace pEp |
|
|
|
{ |
|
|
|
|
|
|
|
template<> |
|
|
|
template<> |
|
|
|
pEp_identity* Wrapper<::pEp_identity*>::_new<const char*, const char*, const char*, const char*> |
|
|
|
(const char* address, const char* fpr, const char* user_id, const char* username) |
|
|
|
{ |
|
|
|
pEp_identity* id = new_identity(address, fpr, user_id, username); |
|
|
|
if(!id) |
|
|
|
{ |
|
|
|
throw EngineError(PEP_OUT_OF_MEMORY, "new_identity()"); |
|
|
|
} |
|
|
|
return id; |
|
|
|
} |
|
|
|
|
|
|
|
template<> |
|
|
|
void Wrapper<::pEp_identity*>::_free(::pEp_identity* id) |
|
|
|
{ |
|
|
|
free_identity(id); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
template class Wrapper<::pEp_identity*>; |
|
|
|
|
|
|
|
} // end of namespace pEp
|