aboutsummaryrefslogtreecommitdiff
path: root/src/msg.cpp
diff options
context:
space:
mode:
authorDeterminant <[email protected]>2019-06-11 19:27:55 -0400
committerDeterminant <[email protected]>2019-06-11 19:27:55 -0400
commit047791d61340f8b727be06d37b613b3914dec957 (patch)
treea1e50ad572a4e5ba5bcc748f4b25bf8fbb0c1ac2 /src/msg.cpp
parentef377f5d85503451a16d50fbc535a7537a28b57f (diff)
...
Diffstat (limited to 'src/msg.cpp')
-rw-r--r--src/msg.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/msg.cpp b/src/msg.cpp
index 33dc31c..d525cd5 100644
--- a/src/msg.cpp
+++ b/src/msg.cpp
@@ -4,7 +4,7 @@
extern "C" {
-msg_t *msg_new(_opcode_t opcode, bytearray_t *_moved_payload) {
+msg_t *msg_new_moved_from_bytearray(_opcode_t opcode, bytearray_t *_moved_payload) {
auto res = new msg_t(opcode, std::move(*_moved_payload));
bytearray_free(_moved_payload);
return res;
@@ -12,7 +12,7 @@ msg_t *msg_new(_opcode_t opcode, bytearray_t *_moved_payload) {
void msg_free(msg_t *msg) { delete msg; }
-datastream_t *msg_get_payload(const msg_t *msg) {
+datastream_t *msg_consume_payload(const msg_t *msg) {
return new datastream_t(msg->get_payload());
}