Browse Source

adding comments

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

+ 3
- 1
src/message.hh View File

@ -106,7 +106,9 @@ namespace pEp {
list keywords() { return strlist_attr(_msg->keywords); }
void keywords(list value) { strlist_attr(_msg->keywords, value); }
char *comments;
string comments() { return str_attr(_msg->comments); }
void comments(string value) { str_attr(_msg->comments, value); }
stringpair_list_t *opt_fields;
PEP_enc_format enc_format;
};


+ 4
- 1
src/pEpmodule.cc View File

@ -127,6 +127,9 @@ BOOST_PYTHON_MODULE(pEp)
"message IDs of messages this one is referring to")
.add_property("keywords", (list(Message::*)()) &Message::keywords,
(void(Message::*)(list)) &Message::keywords,
"keywords this message should be stored under");
"keywords this message should be stored under")
.add_property("comments", (string(Message::*)()) &Message::comments,
(void(Message::*)(string)) &Message::comments,
"comments added to message");
}

Loading…
Cancel
Save