pub unsafe fn object_get_event_count(obj: *mut Object) -> Result<u32>
This function is unsafe because it may dereference raw pointers.