feat(storage/vfs): make part of nullfs API private

This commit is contained in:
Tomáš Rohlínek
2024-11-01 13:16:57 +01:00
parent bb305bd109
commit 39197864a1
3 changed files with 25 additions and 7 deletions

View File

@ -16,6 +16,7 @@
#include "sdkconfig.h"
#include "esp_private/startup_internal.h"
#include "esp_vfs_null.h"
#include "esp_private/nullfs.h"
#define STRINGIFY(s) STRINGIFY2(s)
#define STRINGIFY2(s) #s

View 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

View File

@ -12,13 +12,6 @@
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);
/**
* @brief Register filesystem for /dev/null
*