mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-09 04:25:32 +00:00
feat(storage/vfs): add /dev/null for unwanted output redirection
This commit is contained in:
31
components/vfs/include/esp_vfs_null.h
Normal file
31
components/vfs/include/esp_vfs_null.h
Normal 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
|
Reference in New Issue
Block a user