PlatformModule

Trait PlatformModule 

Source
pub trait PlatformModule: Send + Sync {
    // Required methods
    fn id(&self) -> &'static str;
    fn name(&self) -> &'static str;
    fn detection_patterns(&self) -> Vec<DetectionPattern>;
    fn header_stubs(&self) -> &HeaderStubs;
    fn attributes_to_strip(&self) -> &[&'static str];
    fn ops_structs(&self) -> &[OpsStructDef];
    fn call_normalizations(&self) -> &HashMap<&'static str, &'static str>;
}
Expand description

Trait for platform-specific modules

Required Methods§

Source

fn id(&self) -> &'static str

Unique identifier for this platform

Source

fn name(&self) -> &'static str

Human-readable name

Source

fn detection_patterns(&self) -> Vec<DetectionPattern>

Get detection patterns for this platform

Source

fn header_stubs(&self) -> &HeaderStubs

Get header stubs for this platform

Source

fn attributes_to_strip(&self) -> &[&'static str]

Get attributes that should be stripped for this platform

Source

fn ops_structs(&self) -> &[OpsStructDef]

Get ops struct definitions for callback resolution

Source

fn call_normalizations(&self) -> &HashMap<&'static str, &'static str>

Get call normalization mappings (platform-specific → unified)

Implementors§