[][src]Type Definition apache_nimble_sys::ble_store_write_fn

type ble_store_write_fn = Option<unsafe extern "C" fn(obj_type: c_int, val: *const ble_store_value) -> c_int>;

Writes the specified object to the store. If an object with the same identity is already in the store, it is replaced. If the store lacks sufficient capacity to write the object, this function may remove previously stored values to make room.

@param obj_type The type of object being written; one of the BLE_STORE_OBJ_TYPE_[...] codes. @param val The object to persist.

@return 0 if the object was successfully written; Other nonzero on error.