1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

sys/vfs: move mtd_vfs_ops to vfs.h

This avoids a cyclic include of mtd.h
This commit is contained in:
Benjamin Valentin 2021-12-04 14:20:27 +01:00
parent c94033016e
commit 70d9f2fb1a
2 changed files with 6 additions and 10 deletions

View File

@ -24,9 +24,6 @@
#define MTD_H
#include <stdint.h>
#if MODULE_VFS
#include "vfs.h"
#endif
#ifdef __cplusplus
extern "C" {
@ -397,13 +394,6 @@ int mtd_erase_sector(mtd_dev_t *mtd, uint32_t sector, uint32_t num);
*/
int mtd_power(mtd_dev_t *mtd, enum mtd_power_state power);
#if defined(MODULE_VFS) || defined(DOXYGEN)
/**
* @brief MTD driver for VFS
*/
extern const vfs_file_ops_t mtd_vfs_ops;
#endif
#ifdef __cplusplus
}
#endif

View File

@ -68,6 +68,7 @@
#include "sched.h"
#include "clist.h"
#include "mtd.h"
#ifdef __cplusplus
extern "C" {
@ -250,6 +251,11 @@ typedef struct vfs_file_system_ops vfs_file_system_ops_t;
/* not struct vfs_mount because of name collision with the function */
typedef struct vfs_mount_struct vfs_mount_t;
/**
* @brief MTD driver for VFS
*/
extern const vfs_file_ops_t mtd_vfs_ops;
/**
* @brief A file system driver
*/