From 06f7f6ff7fb02b462c3d5c23d7353473976d7a26 Mon Sep 17 00:00:00 2001 From: bunnie Date: Wed, 14 Apr 2021 03:20:30 +0800 Subject: [PATCH] add a define for the maximum CID --- xous-rs/src/definitions.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/xous-rs/src/definitions.rs b/xous-rs/src/definitions.rs index a869e99b4..98eeee112 100644 --- a/xous-rs/src/definitions.rs +++ b/xous-rs/src/definitions.rs @@ -9,6 +9,8 @@ pub type MessageId = usize; pub type PID = NonZeroU8; pub type Connection = usize; +pub const MAX_CID: usize = 34; + #[derive(Debug, PartialEq, Eq, Ord, PartialOrd, Copy, Clone)] pub struct MessageSender { data: usize,