unsafe extern "C" fn on_state_changed( data: *mut c_void, _old: c_int, new: c_int, error: *const c_char, )