/* Get maximum message size in a Message Queue.  */
uint32_t osMessageQueueGetMsgSize(osMessageQueueId_t msgq_id)
/* Get maximum message size in a Message Queue.  */
uint32_t osMessageQueueGetMsgSize(osMessageQueueId_t msgq_id)
{
	struct cv2_msgq *msgq = (struct cv2_msgq *)msgq_id;
	if (msgq == NULL) {
		return 0;
	} else {
		return msgq->z_msgq.msg_size;
	}
}