|
|
@ -19,10 +19,11 @@ namespace pEp |
|
|
|
) |
|
|
|
{} |
|
|
|
|
|
|
|
////////////////
|
|
|
|
|
|
|
|
template<> |
|
|
|
template<> |
|
|
|
message* Wrapper<::message*>::_new<PEP_msg_direction, char*>(PEP_msg_direction dir, char* s) |
|
|
|
message* Wrapper<::message*>::_new<PEP_msg_direction, const char*>(PEP_msg_direction dir, const char* s) |
|
|
|
{ |
|
|
|
message* m = new_message(dir); |
|
|
|
if(!m) |
|
|
@ -32,6 +33,14 @@ namespace pEp |
|
|
|
return m; |
|
|
|
} |
|
|
|
|
|
|
|
template<> |
|
|
|
void Wrapper<::message*>::_free(::message* m) |
|
|
|
{ |
|
|
|
free_message(m); |
|
|
|
} |
|
|
|
|
|
|
|
////////////////
|
|
|
|
|
|
|
|
template<> |
|
|
|
template<> |
|
|
|
::stringpair_t* Wrapper<::stringpair_t*>::_new(const char* key, const char* value) |
|
|
@ -51,9 +60,13 @@ namespace pEp |
|
|
|
return Wrapper<::stringpair_t*>::_new(key.c_str(), value.c_str()); |
|
|
|
} |
|
|
|
|
|
|
|
template<> |
|
|
|
void Wrapper<::stringpair_t*>::_free(::stringpair_t* sp) |
|
|
|
{ |
|
|
|
free_stringpair(sp); |
|
|
|
} |
|
|
|
|
|
|
|
Message m(PEP_dir_incoming, "Foo"); |
|
|
|
StringPair sp(std::string("foo"), std::string("bar")); |
|
|
|
////////////////
|
|
|
|
|
|
|
|
template class Wrapper<::pEp_identity>; |
|
|
|
template class Wrapper<::stringpair_t>; |
|
|
|