[−][src]Function battery_ffi::battery_iterator_next
#[no_mangle]pub unsafe extern "C" fn battery_iterator_next(
ptr: *mut Batteries
) -> *mut Battery
Gets next iteration over batteries iterator.
Caller is required to call battery_free in order to properly free memory for the returned battery instance.
Caller is required to call battery_iterator_free if order to properly free memory for the returned batteries iterator instance.
Panics
This function will panic if any passed pointer is NULL
Returns
If there is no batteries left to iterate, this function returns NULL
,
otherwise it returns pointer to next battery.