feat(storage/vfs): add /dev/null for unwanted output redirection

This commit is contained in:
Tomáš Rohlínek
2024-04-19 10:03:36 +02:00
parent 0b4fff69c5
commit a615f487dd
6 changed files with 349 additions and 1 deletions

View File

@@ -0,0 +1,31 @@
/*
* 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);
/**
* @brief Register filesystem for /dev/null
*
* @return ESP_OK on success; any other value indicates an error
*/
esp_err_t esp_vfs_null_register(void);
#ifdef __cplusplus
}
#endif