aboutsummaryrefslogtreecommitdiff
path: root/src/msg.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/msg.cpp')
-rw-r--r--src/msg.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/msg.cpp b/src/msg.cpp
index be5b4b1..7ad0629 100644
--- a/src/msg.cpp
+++ b/src/msg.cpp
@@ -14,9 +14,11 @@ datastream_t *msg_consume_payload(const msg_t *msg) {
return new datastream_t(msg->get_payload());
}
-_opcode_t msg_get_opcode(const msg_t *msg) {
- return msg->get_opcode();
-}
+_opcode_t msg_get_opcode(const msg_t *self) { return self->get_opcode(); }
+
+uint32_t msg_get_magic(const msg_t *self) { return self->get_magic(); }
+
+void msg_set_magic(msg_t *self, uint32_t magic) { return self->set_magic(magic); }
}