Lines Matching refs:c_handle
267 static esp_err_t nvs_find_ns_handle(nvs_handle_t c_handle, NVSHandleSimple** handle) in nvs_find_ns_handle() argument
270 return e.mHandle == c_handle; in nvs_find_ns_handle()
319 extern "C" esp_err_t nvs_erase_key(nvs_handle_t c_handle, const char* key) in nvs_erase_key() argument
324 auto err = nvs_find_ns_handle(c_handle, &handle); in nvs_erase_key()
332 extern "C" esp_err_t nvs_erase_all(nvs_handle_t c_handle) in nvs_erase_all() argument
337 auto err = nvs_find_ns_handle(c_handle, &handle); in nvs_erase_all()
346 static esp_err_t nvs_set(nvs_handle_t c_handle, const char* key, T value) in nvs_set() argument
351 auto err = nvs_find_ns_handle(c_handle, &handle); in nvs_set()
399 extern "C" esp_err_t nvs_commit(nvs_handle_t c_handle) in nvs_commit() argument
404 auto err = nvs_find_ns_handle(c_handle, &handle); in nvs_commit()
411 extern "C" esp_err_t nvs_set_str(nvs_handle_t c_handle, const char* key, const char* value) in nvs_set_str() argument
416 auto err = nvs_find_ns_handle(c_handle, &handle); in nvs_set_str()
423 extern "C" esp_err_t nvs_set_blob(nvs_handle_t c_handle, const char* key, const void* value, size_t… in nvs_set_blob() argument
428 auto err = nvs_find_ns_handle(c_handle, &handle); in nvs_set_blob()
437 static esp_err_t nvs_get(nvs_handle_t c_handle, const char* key, T* out_value) in nvs_get() argument
442 auto err = nvs_find_ns_handle(c_handle, &handle); in nvs_get()
449 extern "C" esp_err_t nvs_get_i8 (nvs_handle_t c_handle, const char* key, int8_t* out_value) in nvs_get_i8() argument
451 return nvs_get(c_handle, key, out_value); in nvs_get_i8()
454 extern "C" esp_err_t nvs_get_u8 (nvs_handle_t c_handle, const char* key, uint8_t* out_value) in nvs_get_u8() argument
456 return nvs_get(c_handle, key, out_value); in nvs_get_u8()
459 extern "C" esp_err_t nvs_get_i16 (nvs_handle_t c_handle, const char* key, int16_t* out_value) in nvs_get_i16() argument
461 return nvs_get(c_handle, key, out_value); in nvs_get_i16()
464 extern "C" esp_err_t nvs_get_u16 (nvs_handle_t c_handle, const char* key, uint16_t* out_value) in nvs_get_u16() argument
466 return nvs_get(c_handle, key, out_value); in nvs_get_u16()
469 extern "C" esp_err_t nvs_get_i32 (nvs_handle_t c_handle, const char* key, int32_t* out_value) in nvs_get_i32() argument
471 return nvs_get(c_handle, key, out_value); in nvs_get_i32()
474 extern "C" esp_err_t nvs_get_u32 (nvs_handle_t c_handle, const char* key, uint32_t* out_value) in nvs_get_u32() argument
476 return nvs_get(c_handle, key, out_value); in nvs_get_u32()
479 extern "C" esp_err_t nvs_get_i64 (nvs_handle_t c_handle, const char* key, int64_t* out_value) in nvs_get_i64() argument
481 return nvs_get(c_handle, key, out_value); in nvs_get_i64()
484 extern "C" esp_err_t nvs_get_u64 (nvs_handle_t c_handle, const char* key, uint64_t* out_value) in nvs_get_u64() argument
486 return nvs_get(c_handle, key, out_value); in nvs_get_u64()
489 static esp_err_t nvs_get_str_or_blob(nvs_handle_t c_handle, nvs::ItemType type, const char* key, vo… in nvs_get_str_or_blob() argument
494 auto err = nvs_find_ns_handle(c_handle, &handle); in nvs_get_str_or_blob()
519 extern "C" esp_err_t nvs_get_str(nvs_handle_t c_handle, const char* key, char* out_value, size_t* l… in nvs_get_str() argument
521 return nvs_get_str_or_blob(c_handle, nvs::ItemType::SZ, key, out_value, length); in nvs_get_str()
524 extern "C" esp_err_t nvs_get_blob(nvs_handle_t c_handle, const char* key, void* out_value, size_t* … in nvs_get_blob() argument
526 return nvs_get_str_or_blob(c_handle, nvs::ItemType::BLOB, key, out_value, length); in nvs_get_blob()
554 extern "C" esp_err_t nvs_get_used_entry_count(nvs_handle_t c_handle, size_t* used_entries) in nvs_get_used_entry_count() argument
563 auto err = nvs_find_ns_handle(c_handle, &handle); in nvs_get_used_entry_count()