1 2 3 4 5 6 7 8 9 10 11 12
use cacti::area::Area; use cacti::cacti_interface::powerDef; #[derive(Clone, Copy, Debug)] #[repr(C)] pub struct Component; extern "C" { pub fn Component_area(this: *mut Component) -> *mut Area; pub fn Component_power(this: *mut Component) -> *mut powerDef; pub fn Component_rt_power(this: *mut Component) -> *mut powerDef; }