Browse Source

adding in_reply_to

AllGroupDevicesShowHandshake
Volker Birk 6 years ago
parent
commit
4f5d93bfca
4 changed files with 10 additions and 6 deletions
  1. +2
    -1
      src/message.hh
  2. +4
    -1
      src/pEpmodule.cc
  3. +2
    -2
      src/str_attr.cc
  4. +2
    -2
      src/str_attr.hh

+ 2
- 1
src/message.hh View File

@ -97,7 +97,8 @@ namespace pEp {
list reply_to() { return identitylist_attr(_msg->reply_to); }
void reply_to(list value) { identitylist_attr(_msg->reply_to, value); }
stringlist_t *in_reply_to;
list in_reply_to() { return strlist_attr(_msg->in_reply_to); }
void in_reply_to(list value) { strlist_attr(_msg->in_reply_to, value); }
struct _message *refering_msg_ref;
stringlist_t *references;


+ 4
- 1
src/pEpmodule.cc View File

@ -118,6 +118,9 @@ BOOST_PYTHON_MODULE(pEp)
"list of identities message is going bcc")
.add_property("reply_to", (list(Message::*)()) &Message::reply_to,
(void(Message::*)(list)) &Message::reply_to,
"list of identities where message will be replied to");
"list of identities where message will be replied to")
.add_property("in_reply_to", (list(Message::*)()) &Message::in_reply_to,
(void(Message::*)(list)) &Message::in_reply_to,
"in_reply_to list");
}

+ 2
- 2
src/str_attr.cc View File

@ -38,7 +38,7 @@ namespace pEp {
ts = new_timestamp(value);
}
list strlist(stringlist_t *&sl)
list strlist_attr(stringlist_t *&sl)
{
list result;
@ -50,7 +50,7 @@ namespace pEp {
return result;
}
void strlist(stringlist_t *&sl, list value)
void strlist_attr(stringlist_t *&sl, list value)
{
stringlist_t *_sl = new_stringlist(NULL);
if (!_sl)


+ 2
- 2
src/str_attr.hh View File

@ -16,8 +16,8 @@ namespace pEp {
time_t timestamp_attr(timestamp *&ts);
void timestamp_attr(timestamp *&ts, time_t value);
list strlist(stringlist_t *&sl);
void strlist(stringlist_t *&sl, list value);
list strlist_attr(stringlist_t *&sl);
void strlist_attr(stringlist_t *&sl, list value);
}
}

Loading…
Cancel
Save