aboutsummaryrefslogtreecommitdiff
path: root/src/msg.cpp
diff options
context:
space:
mode:
authorDeterminant <[email protected]>2019-06-28 17:10:36 -0400
committerDeterminant <[email protected]>2019-06-28 17:10:36 -0400
commitfedfeaced48150e27907628244e95ca54dbe7c02 (patch)
tree40643888f7f1fe4ddfe75f777c7dddd5c276feb9 /src/msg.cpp
parent06b5a84602dc6a5dd76d82c9f88359cdb8cf52da (diff)
more api
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); }
}