update code for Mu::MessagePriority

Update dependent code
This commit is contained in:
Dirk-Jan C. Binnema
2022-02-13 14:32:10 +02:00
parent 13bcc6eb5d
commit 23fc8bdba8
10 changed files with 84 additions and 102 deletions

View File

@ -427,11 +427,13 @@ Mu::mu_msg_get_size(MuMsg* self)
return (size_t)get_num_field(self, MU_MSG_FIELD_ID_SIZE);
}
MuMsgPrio
Mu::MessagePriority
Mu::mu_msg_get_prio(MuMsg* self)
{
g_return_val_if_fail(self, MU_MSG_PRIO_NORMAL);
return (MuMsgPrio)get_num_field(self, MU_MSG_FIELD_ID_PRIO);
g_return_val_if_fail(self, MessagePriority{});
return message_priority_from_char(
static_cast<char>(get_num_field(self, MU_MSG_FIELD_ID_PRIO)));
}
struct _BodyData {