Skip to content

Commit a677959

Browse files
committed
Move SPIFFSFSImpl to .cpp file
1 parent 009e0bb commit a677959

File tree

2 files changed

+11
-9
lines changed

2 files changed

+11
-9
lines changed

libraries/SPIFFS/src/SPIFFS.cpp

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212
// See the License for the specific language governing permissions and
1313
// limitations under the License.
1414

15+
#include "vfs_api.h"
16+
1517
extern "C" {
1618
#include <sys/unistd.h>
1719
#include <sys/stat.h>
@@ -23,6 +25,14 @@ extern "C" {
2325

2426
using namespace fs;
2527

28+
class SPIFFSImpl : public VFSImpl
29+
{
30+
public:
31+
SPIFFSImpl();
32+
virtual ~SPIFFSImpl() { }
33+
virtual bool exists(const char* path);
34+
};
35+
2636
SPIFFSImpl::SPIFFSImpl()
2737
{
2838
}

libraries/SPIFFS/src/SPIFFS.h

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -14,19 +14,11 @@
1414
#ifndef _SPIFFS_H_
1515
#define _SPIFFS_H_
1616

17-
#include "vfs_api.h"
17+
#include "FS.h"
1818

1919
namespace fs
2020
{
2121

22-
class SPIFFSImpl : public VFSImpl
23-
{
24-
public:
25-
SPIFFSImpl();
26-
virtual ~SPIFFSImpl() { }
27-
virtual bool exists(const char* path);
28-
};
29-
3022
class SPIFFSFS : public FS
3123
{
3224
public:

0 commit comments

Comments
 (0)