mirror of
https://github.com/espressif/esp-idf.git
synced 2026-10-01 18:50:34 +03:00
- BDL provider can be enabled vor NVS in the menuconfig option NVS_BDL_STACK - Hierarchy of Partition class tree was adjusted and all operations were documented - Class Partition is now derived from intrusive_list_node and ExceptionlessAllocable - Class NVSPartition implements only the dual support for esp_partition and BDL - Class NVSEncryptedPartition implements only encryption related extensions
23 lines
508 B
C++
23 lines
508 B
C++
/*
|
|
* SPDX-FileCopyrightText: 2019-2025 Espressif Systems (Shanghai) CO LTD
|
|
*
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
#pragma once
|
|
|
|
#include "esp_err.h"
|
|
#include "nvs_partition.hpp" // For nvs::Partition
|
|
#include "nvs_flash.h" // For nvs_sec_cfg_t
|
|
|
|
namespace nvs {
|
|
|
|
namespace partition_lookup {
|
|
|
|
esp_err_t lookup_nvs_partition(const char* label, Partition **p);
|
|
|
|
esp_err_t lookup_nvs_encrypted_partition(const char* label, nvs_sec_cfg_t* cfg, Partition **p);
|
|
|
|
} // partition_lookup
|
|
|
|
} // nvs
|