|
@ -6,12 +6,31 @@ |
|
|
|
|
|
|
|
|
namespace pEp |
|
|
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<> |
|
|
template<> |
|
|
void Wrapper<::identity_list*>::_free(::identity_list* sl) |
|
|
void Wrapper<::identity_list*>::_free(::identity_list* sl) |
|
|
{ |
|
|
{ |
|
|
::free_identity_list(sl); |
|
|
::free_identity_list(sl); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
template<> |
|
|
template<> |
|
|
::pEp_identity* identity_list::* const ListWrapper<::identity_list*, ::pEp_identity*>::Value |
|
|
::pEp_identity* identity_list::* const ListWrapper<::identity_list*, ::pEp_identity*>::Value |
|
|
= &identity_list::ident; |
|
|
= &identity_list::ident; |
|
|