[][src]Type Definition apache_nimble_sys::ble_store_read_fn

type ble_store_read_fn = Option<unsafe extern "C" fn(obj_type: c_int, key: *const ble_store_key, dst: *mut ble_store_value) -> c_int>;

Searches the store for an object matching the specified criteria. If a match is found, it is read from the store and the dst parameter is populated with the retrieved object.

@param obj_type The type of object to search for; one of the BLE_STORE_OBJ_TYPE_[...] codes. @param key Specifies properties of the object to search for. An object is retrieved if it matches these criteria. @param dst On success, this is populated with the retrieved object.

@return 0 if an object was successfully retreived; BLE_HS_ENOENT if no matching object was found; Other nonzero on error.