Browse Source

forgot Wrapper<pEp_identity*>::_new() and ~::free().

master
roker 4 months ago
parent
commit
d36141f3b1
1 changed files with 20 additions and 1 deletions
  1. +20
    -1
      src/identity.cc

+ 20
- 1
src/identity.cc View File

@ -6,12 +6,31 @@
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
)
{
return ::new_identity(address, fpr, user_id, username);
}
template<>
void Wrapper<::pEp_identity*>::_free(::pEp_identity* id)
{
::free_identity(id);
}
//////////////
template<>
void Wrapper<::identity_list*>::_free(::identity_list* sl)
{
::free_identity_list(sl);
}
template<>
::pEp_identity* identity_list::* const ListWrapper<::identity_list*, ::pEp_identity*>::Value
= &identity_list::ident;


Loading…
Cancel
Save