hotspot 0.0.3

The library constructs thermal RC circuits for multiprocessor systems based on the block model of HotSpot.
use libc::{c_char, c_double, size_t};

#[repr(C)]
pub struct Circuit {
    pub cores: size_t,
    pub nodes: size_t,
    pub capacitance: *mut c_double,
    pub conductance: *mut c_double,
}

#[link(name = "circuit", kind = "static")]
extern {
    pub fn new_circuit(floorplan: *const c_char, config: *const c_char,
                       params: *const c_char) -> *mut Circuit;
    pub fn free_circuit(circuit: *mut Circuit);
}