implement the wrapper for certain types.
parent
68052a3c78
commit
fe88301c3b
@ -0,0 +1,27 @@
|
||||
#include "types.hh"
|
||||
|
||||
/*
|
||||
#include <pEp/pEpEngine.h>
|
||||
#include <pEp/stringpair.h>
|
||||
#include <pEp/message.h>
|
||||
*/
|
||||
|
||||
namespace pEp
|
||||
{
|
||||
|
||||
template class Wrapper<::pEp_identity>;
|
||||
template class Wrapper<::stringpair_t>;
|
||||
|
||||
template class Wrapper<::message>;
|
||||
|
||||
template<>
|
||||
message* Wrapper<::message>::_new(PEP_msg_direction dir, char* s)
|
||||
{
|
||||
message* m = new_message(dir);
|
||||
return m;
|
||||
}
|
||||
|
||||
|
||||
Message m(PEP_dir_incoming, "Foo");
|
||||
|
||||
} // end of namespace pEp
|
@ -0,0 +1,23 @@
|
||||
// This file is under GNU General Public License 3.0
|
||||
// see LICENSE.txt
|
||||
|
||||
#ifndef LIBPEPDATATYPES_TYPES_HH
|
||||
#define LIBPEPDATATYPES_TYPES_HH
|
||||
|
||||
#include "wrapper.hh"
|
||||
|
||||
#include <pEp/pEpEngine.h>
|
||||
#include <pEp/stringpair.h>
|
||||
#include <pEp/message.h>
|
||||
|
||||
namespace pEp
|
||||
{
|
||||
|
||||
using Identity = Wrapper<::pEp_identity>;
|
||||
using StringPair = Wrapper<::stringpair_t>;
|
||||
|
||||
using Message = Wrapper<::message>;
|
||||
|
||||
} // end of namespace pEp
|
||||
|
||||
#endif // LIBPEPDATATYPES_TYPES_HH
|
Loading…
Reference in New Issue