2021-04-25 01:32:48 +02:00
|
|
|
// This file is under GNU General Public License 3.0
|
|
|
|
// see LICENSE.txt
|
|
|
|
|
|
|
|
#ifndef LIBPEPADAPTER_UTILS_HH
|
|
|
|
#define LIBPEPADAPTER_UTILS_HH
|
|
|
|
|
|
|
|
#include "pEpLog.hh"
|
|
|
|
#include <pEp/message.h>
|
|
|
|
#include <pEp/identity_list.h>
|
|
|
|
#include <pEp/group.h>
|
|
|
|
#include <exception>
|
2021-04-25 02:20:42 +02:00
|
|
|
#include <vector>
|
2021-04-29 02:11:44 +02:00
|
|
|
#include <string>
|
2021-04-25 01:32:48 +02:00
|
|
|
|
|
|
|
namespace pEp {
|
|
|
|
namespace Utils {
|
2021-04-25 02:20:42 +02:00
|
|
|
// C-types to C++ types
|
|
|
|
std::vector<::pEp_identity *> to_cxx(const ::identity_list &idl);
|
|
|
|
|
2021-04-25 01:32:48 +02:00
|
|
|
// pEpEngine datatypes to string
|
|
|
|
std::string to_string(const ::pEp_identity *const ident, bool full = true, int indent = 0);
|
|
|
|
std::string to_string(const ::identity_list *const idl, bool full = true, int indent = 0);
|
|
|
|
std::string to_string(const ::pEp_member *const member, bool full = true, int indent = 0);
|
|
|
|
std::string to_string(const ::member_list *const mbl, bool full = true, int indent = 0);
|
|
|
|
std::string to_string(const ::pEp_group *const group, bool full = true, int indent = 0);
|
|
|
|
|
|
|
|
} // namespace Utils
|
|
|
|
} // namespace pEp
|
|
|
|
#endif // LIBPEPADAPTER_UTILS_HH
|