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 <sean@xobs.io>
This commit is contained in:
Sean Cross 2021-03-13 18:05:33 +08:00
parent 9c8b562711
commit 14c9d62046

View file

@ -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),