// 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 "bloblist.hh" // full specialization of ListWrapper. #include #include #include #include namespace pEp { class EngineError : std::runtime_error { public: EngineError(PEP_STATUS status, const char* message = nullptr); }; using Identity = Wrapper<::pEp_identity*>; using IdentityList = ListWrapper<::identity_list*, ::pEp_identity*>; using StringPair = Wrapper<::stringpair_t*>; using StringPairList = ListWrapper<::stringpair_list_t*, ::stringpair_t*>; using StringList = ListWrapper<::stringlist_t*, const char*>; using BlobList = ListWrapper<::bloblist_t*, void>; using Message = Wrapper<::message*>; } // end of namespace pEp #endif // LIBPEPDATATYPES_TYPES_HH