mirror of
https://github.com/cesanta/mongoose.git
synced 2026-11-28 20:58:31 +00:00
Add WebDAV support to sjs/esp8266
PUBLISHED_FROM=a68a2f205cb2f10809183d5160709981585538b7
This commit is contained in:
1 parent
35abfd44dd
commit
cfe80ba9b7
2 files changed
+109
-11
No files matched your search
+27
@@ -603,6 +603,33 @@ int json_emit_va(char *buf, int buf_len, const char *fmt, va_list);
|
||||
#endif /* __cplusplus */
|
||||
|
||||
#endif /* FROZEN_HEADER_INCLUDED */
|
||||
#ifndef DIRENT_H_INCLUDED
|
||||
#define DIRENT_H_INCLUDED
|
||||
|
||||
#ifdef CS_ENABLE_SPIFFS
|
||||
|
||||
#include <spiffs.h>
|
||||
|
||||
typedef struct {
|
||||
spiffs_DIR dh;
|
||||
struct spiffs_dirent de;
|
||||
} DIR;
|
||||
|
||||
#define d_name name
|
||||
#define dirent spiffs_dirent
|
||||
|
||||
int rmdir(const char *path);
|
||||
int mkdir(const char *path, mode_t mode);
|
||||
|
||||
#endif
|
||||
|
||||
#if defined(_WIN32) || defined(CS_ENABLE_SPIFFS)
|
||||
DIR *opendir(const char *dir_name);
|
||||
int closedir(DIR *dir);
|
||||
struct dirent *readdir(DIR *dir);
|
||||
#endif
|
||||
|
||||
#endif
|
||||
/*
|
||||
* Copyright (c) 2014 Cesanta Software Limited
|
||||
* All rights reserved
|
||||
|
||||
Reference in new issue
Block a user