1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
use libc::c_double; use cacti::cacti_interface::powerDef; use sharedcache::SharedCache; #[derive(Clone, Copy, Debug)] #[repr(C)] pub struct Core; extern "C" { pub fn Core_power(this: *mut Core) -> *mut powerDef; pub fn Core_rt_power(this: *mut Core) -> *mut powerDef; pub fn Core_clockRate(this: *mut Core) -> c_double; pub fn Core_executionTime(this: *mut Core) -> c_double; pub fn Core_l2cache(this: *mut Core) -> *mut SharedCache; }