1 // This file is under GNU General Public License 3.0
13 // decorate_message() - decorate a message with payload
16 // msg (inout) message to decorate
17 // payload (in) payload to send
18 // size (in) size of payload
21 // PEP_STATUS_OK and result on success or an error on failure
24 // on success (and only then) payload goes to the ownership of the msg
25 // the ownership of the msg remains with the caller
27 PEP_STATUS decorate_message(
34 // prepare_message() - prepare a sync message with payload
37 // me (in) identity to use for the sender
38 // partner (in) identity to use for the receiver
39 // payload (in) payload to send
40 // size (in) size of payload
41 // result (out) message with payload
44 // PEP_STATUS_OK and result on success or an error on failure
47 // on success (and only then) payload goes to the ownership of the result
48 // the ownership of the result goes to the caller
50 PEP_STATUS prepare_message(
51 const pEp_identity *me,
52 const pEp_identity *partner,