1 // Copyright 2024 The ChromiumOS Authors 2 // Use of this source code is governed by a BSD-style license that can be 3 // found in the LICENSE file. 4 5 use crate::rutabaga_os::OwnedDescriptor; 6 use crate::rutabaga_os::WaitEvent; 7 use crate::rutabaga_os::WaitTimeout; 8 use crate::rutabaga_utils::RutabagaError; 9 use crate::rutabaga_utils::RutabagaResult; 10 11 pub struct Stub(()); 12 pub type WaitContext = Stub; 13 14 impl WaitContext { new() -> RutabagaResult<WaitContext>15 pub fn new() -> RutabagaResult<WaitContext> { 16 Err(RutabagaError::Unsupported) 17 } 18 add( &mut self, _connection_id: u64, _descriptor: &OwnedDescriptor, ) -> RutabagaResult<()>19 pub fn add( 20 &mut self, 21 _connection_id: u64, 22 _descriptor: &OwnedDescriptor, 23 ) -> RutabagaResult<()> { 24 Err(RutabagaError::Unsupported) 25 } 26 wait(&mut self, _timeout: WaitTimeout) -> RutabagaResult<Vec<WaitEvent>>27 pub fn wait(&mut self, _timeout: WaitTimeout) -> RutabagaResult<Vec<WaitEvent>> { 28 Err(RutabagaError::Unsupported) 29 } 30 delete(&mut self, _descriptor: &OwnedDescriptor) -> RutabagaResult<()>31 pub fn delete(&mut self, _descriptor: &OwnedDescriptor) -> RutabagaResult<()> { 32 Err(RutabagaError::Unsupported) 33 } 34 } 35