From 38bb932cc95de7cab297ea48b52e87e228420f75 Mon Sep 17 00:00:00 2001 From: pjht Date: Sat, 16 Nov 2024 11:54:29 -0600 Subject: [PATCH] Add mode to open operation --- src/main.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.rs b/src/main.rs index ef3cae6..2c9a2de 100644 --- a/src/main.rs +++ b/src/main.rs @@ -2,7 +2,7 @@ mod controller; use std::{ collections::VecDeque, - os::mikros::{ipc, syscalls, Errno}, + os::mikros::{ipc, syscalls, Errno, FileOpenMode}, sync::OnceLock, }; @@ -21,7 +21,7 @@ static KEYPRESS_BUF: Mutex> = Mutex::new(VecDeque::new()); struct DevServ; impl dev_driver_rpc::Server for DevServ { - fn open(&self, _path: &std::path::Path) -> Result { + fn open(&self, _path: &std::path::Path, _mode: FileOpenMode) -> Result { Ok(0) } }