diff options
author | Determinant <[email protected]> | 2019-06-04 23:00:55 -0400 |
---|---|---|
committer | Determinant <[email protected]> | 2019-06-04 23:00:55 -0400 |
commit | fad6446ce15bcd1303fdd162d6938ab30046467e (patch) | |
tree | 524e713d3574042176c1021bbfd610a885e950a2 /src/msg.cpp | |
parent | dab48a1825aed9c810ce83ea8054fa435ecb41be (diff) |
finish the minimal working example
Diffstat (limited to 'src/msg.cpp')
-rw-r--r-- | src/msg.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/msg.cpp b/src/msg.cpp index caee1c7..33dc31c 100644 --- a/src/msg.cpp +++ b/src/msg.cpp @@ -10,16 +10,16 @@ msg_t *msg_new(_opcode_t opcode, bytearray_t *_moved_payload) { return res; } +void msg_free(msg_t *msg) { delete msg; } + datastream_t *msg_get_payload(const msg_t *msg) { return new datastream_t(msg->get_payload()); } -const _opcode_t msg_get_opcode(const msg_t *msg) { +_opcode_t msg_get_opcode(const msg_t *msg) { return msg->get_opcode(); } -void msg_free(msg_t *msg) { delete msg; } - } #endif |