Browse Source

add identity.cc I had fogotten.

master
roker 4 months ago
parent
commit
76ead4b179
1 changed files with 28 additions and 0 deletions
  1. +28
    -0
      src/identity.cc

+ 28
- 0
src/identity.cc View File

@ -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

Loading…
Cancel
Save