use vmi_core::{
Va, VmiError, VmiVa,
driver::VmiRead,
os::{
ThreadId, ThreadObject, VmiOsImage, VmiOsImageArchitecture, VmiOsImageSymbol, VmiOsMapped,
VmiOsModule, VmiOsThread, VmiOsUserModule,
},
};
use crate::{LinuxOs, arch::ArchAdapter};
pub struct LinuxImage;
impl VmiVa for LinuxImage {
fn va(&self) -> Va {
unimplemented!()
}
}
impl<'a, Driver> VmiOsImage<'a, Driver> for LinuxImage
where
Driver: VmiRead,
Driver::Architecture: ArchAdapter<Driver>,
{
type Os = LinuxOs<Driver>;
fn base_address(&self) -> Va {
unimplemented!()
}
fn architecture(&self) -> Result<Option<VmiOsImageArchitecture>, VmiError> {
unimplemented!()
}
fn exports(&self) -> Result<Vec<VmiOsImageSymbol>, VmiError> {
unimplemented!()
}
}
pub struct LinuxMapped;
impl VmiVa for LinuxMapped {
fn va(&self) -> Va {
unimplemented!()
}
}
impl<Driver> VmiOsMapped<'_, Driver> for LinuxMapped
where
Driver: VmiRead,
Driver::Architecture: ArchAdapter<Driver>,
{
type Os = LinuxOs<Driver>;
fn path(&self) -> Result<Option<String>, VmiError> {
unimplemented!()
}
}
pub struct LinuxModule;
impl VmiVa for LinuxModule {
fn va(&self) -> Va {
unimplemented!()
}
}
impl<Driver> VmiOsModule<'_, Driver> for LinuxModule
where
Driver: VmiRead,
Driver::Architecture: ArchAdapter<Driver>,
{
type Os = LinuxOs<Driver>;
fn base_address(&self) -> Result<Va, VmiError> {
unimplemented!()
}
fn size(&self) -> Result<u64, VmiError> {
unimplemented!()
}
fn name(&self) -> Result<String, VmiError> {
unimplemented!()
}
}
pub struct LinuxUserModule;
impl VmiVa for LinuxUserModule {
fn va(&self) -> Va {
unimplemented!()
}
}
impl<Driver> VmiOsUserModule<'_, Driver> for LinuxUserModule
where
Driver: VmiRead,
Driver::Architecture: ArchAdapter<Driver>,
{
type Os = LinuxOs<Driver>;
fn base_address(&self) -> Result<Va, VmiError> {
unimplemented!()
}
fn size(&self) -> Result<u64, VmiError> {
unimplemented!()
}
fn name(&self) -> Result<String, VmiError> {
unimplemented!()
}
}
pub struct LinuxThread;
impl VmiVa for LinuxThread {
fn va(&self) -> Va {
unimplemented!()
}
}
impl<'a, Driver> VmiOsThread<'a, Driver> for LinuxThread
where
Driver: VmiRead,
Driver::Architecture: ArchAdapter<Driver>,
{
type Os = LinuxOs<Driver>;
fn id(&self) -> Result<ThreadId, VmiError> {
unimplemented!()
}
fn object(&self) -> Result<ThreadObject, VmiError> {
unimplemented!()
}
}