Browse Source

...

AllGroupDevicesShowHandshake
Volker Birk 6 years ago
parent
commit
7d63b4e540
2 changed files with 15 additions and 3 deletions
  1. +9
    -0
      src/message.cc
  2. +6
    -3
      src/message.hh

+ 9
- 0
src/message.cc View File

@ -5,6 +5,15 @@ namespace pEp {
namespace PythonAdapter {
using namespace std;
Message::Blob::Blob(bloblist_t *bl)
: data(bl->value, bl->value+bl->size)
{
if (bl->mime_type)
mime_type = bl->mime_type;
if (bl->filename)
filename = bl->filename;
}
Message::Message(PEP_msg_direction dir)
: _msg(new_message(dir))
{


+ 6
- 3
src/message.hh View File

@ -12,9 +12,12 @@ namespace pEp {
class Message {
struct Blob {
vector<char> _value;
string _mime_type;
string _filename;
vector<char> data;
string mime_type;
string filename;
Blob() { }
Blob(bloblist_t *bl);
operator bloblist_t *();
};
message *_msg;


Loading…
Cancel
Save