From 14c9d62046a1b3b49e657308c64c4c1cf0ca7140 Mon Sep 17 00:00:00 2001 From: Sean Cross Date: Sat, 13 Mar 2021 18:05:33 +0800 Subject: [PATCH] gam: make sure opcodes are only available in-crate This prevents them from accidentally being used outside of the crate. Signed-off-by: Sean Cross --- services/gam/src/api.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/services/gam/src/api.rs b/services/gam/src/api.rs index 9ee51d21c..5f6d73619 100644 --- a/services/gam/src/api.rs +++ b/services/gam/src/api.rs @@ -30,9 +30,10 @@ pub struct ContentCanvasRequest { pub servername: xous::String<256>, } +#[repr(C)] #[derive(Debug, rkyv::Archive, rkyv::Unarchive, Copy, Clone)] // #[archive(derive(Copy, Clone))] -pub enum Opcode { +pub(crate) enum Opcode { // clears a canvas with a given GID ClearCanvas(Gid),