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