rutabaga_gfx/rutabaga_os/sys/stub/
shm.rsuse std::ffi::CStr;
use crate::rutabaga_os::descriptor::AsRawDescriptor;
use crate::rutabaga_os::descriptor::IntoRawDescriptor;
use crate::rutabaga_os::RawDescriptor;
use crate::rutabaga_utils::RutabagaError;
use crate::rutabaga_utils::RutabagaResult;
pub struct SharedMemory {
size: u64,
}
impl SharedMemory {
pub fn new(_debug_name: &CStr, _size: u64) -> RutabagaResult<SharedMemory> {
Err(RutabagaError::Unsupported)
}
pub fn size(&self) -> u64 {
self.size
}
}
impl AsRawDescriptor for SharedMemory {
fn as_raw_descriptor(&self) -> RawDescriptor {
unimplemented!()
}
}
impl IntoRawDescriptor for SharedMemory {
fn into_raw_descriptor(self) -> RawDescriptor {
unimplemented!()
}
}
pub fn round_up_to_page_size(_v: u64) -> RutabagaResult<u64> {
Err(RutabagaError::Unsupported)
}