Browse Source

adding attaching constructor

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

+ 6
- 0
src/message.cc View File

@ -28,6 +28,12 @@ namespace pEp {
_filename = second._filename;
}
Message::Blob::Blob(bloblist_t *bl)
{
_value = NULL;
attach(bl);
}
Message::Blob::~Blob()
{
free(_value);


+ 1
- 0
src/message.hh View File

@ -19,6 +19,7 @@ namespace pEp {
public:
Blob(char *value = NULL, size_t size = 0, string mime_type = "",
string filename = "");
Blob(bloblist_t *bl);
Blob(const Blob& second, bool copy = false);
~Blob();
void attach(bloblist_t *blob);


Loading…
Cancel
Save