[−][src]Function battery_ffi::battery_get_model
#[no_mangle]pub unsafe extern "C" fn battery_get_model(ptr: *const Battery) -> *mut c_char
Returns battery model.
Caller is required to free returned value with battery_str_free function after using it.
Returns
This function might return NULL
if model data is not available.
Calling battery_str_free is not required in that case,
yet it will not lead to any error.
Panics
This function will panic if passed pointer is NULL