pub unsafe fn object_remove_state(obj: *mut Object, state: State) -> Result<()>
Pointers must be valid for the call.