mirror of
https://github.com/espressif/esp-idf.git
synced 2025-07-31 11:17:20 +02:00
feat(storage/vfs): make part of nullfs API private
This commit is contained in:
@ -16,6 +16,7 @@
|
|||||||
#include "sdkconfig.h"
|
#include "sdkconfig.h"
|
||||||
#include "esp_private/startup_internal.h"
|
#include "esp_private/startup_internal.h"
|
||||||
#include "esp_vfs_null.h"
|
#include "esp_vfs_null.h"
|
||||||
|
#include "esp_private/nullfs.h"
|
||||||
|
|
||||||
#define STRINGIFY(s) STRINGIFY2(s)
|
#define STRINGIFY(s) STRINGIFY2(s)
|
||||||
#define STRINGIFY2(s) #s
|
#define STRINGIFY2(s) #s
|
||||||
|
24
components/vfs/include/esp_private/nullfs.h
Normal file
24
components/vfs/include/esp_private/nullfs.h
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
/*
|
||||||
|
* SPDX-FileCopyrightText: 2024 Espressif Systems (Shanghai) CO LTD
|
||||||
|
*
|
||||||
|
* SPDX-License-Identifier: Apache-2.0
|
||||||
|
*/
|
||||||
|
#pragma once
|
||||||
|
|
||||||
|
#include "esp_vfs.h"
|
||||||
|
#include "esp_err.h"
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Get VFS structure for /dev/null
|
||||||
|
*
|
||||||
|
* @return VFS structure for /dev/null
|
||||||
|
*/
|
||||||
|
const esp_vfs_t *esp_vfs_null_get_vfs(void);
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
}
|
||||||
|
#endif
|
@ -12,13 +12,6 @@
|
|||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/**
|
|
||||||
* @brief Get VFS structure for /dev/null
|
|
||||||
*
|
|
||||||
* @return VFS structure for /dev/null
|
|
||||||
*/
|
|
||||||
const esp_vfs_t *esp_vfs_null_get_vfs(void);
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Register filesystem for /dev/null
|
* @brief Register filesystem for /dev/null
|
||||||
*
|
*
|
||||||
|
Reference in New Issue
Block a user