A C++ wrapper for the basic C datatypes defined by the pEpEngine.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

29 lines
623 B

  1. // This file is under GNU General Public License 3.0
  2. // see LICENSE.txt
  3. #ifndef LIBPEPDATATYPES_TYPES_HH
  4. #define LIBPEPDATATYPES_TYPES_HH
  5. #include "wrapper.hh"
  6. #include <stdexcept>
  7. #include <pEp/pEpEngine.h>
  8. #include <pEp/stringpair.h>
  9. #include <pEp/message.h>
  10. namespace pEp
  11. {
  12. class EngineError : std::runtime_error
  13. {
  14. public:
  15. EngineError(PEP_STATUS status, const char* message = nullptr);
  16. };
  17. using Identity = Wrapper<::pEp_identity>;
  18. using StringPair = Wrapper<::stringpair_t>;
  19. using Message = Wrapper<::message>;
  20. } // end of namespace pEp
  21. #endif // LIBPEPDATATYPES_TYPES_HH