23 lines
418 B
23 lines
418 B
9 years ago
|
#ifndef CGIFLASH_H
|
||
|
#define CGIFLASH_H
|
||
|
|
||
|
#include "httpd.h"
|
||
|
|
||
|
#define CGIFLASH_TYPE_FW 0
|
||
|
#define CGIFLASH_TYPE_ESPFS 1
|
||
|
|
||
|
typedef struct {
|
||
|
int type;
|
||
|
int fw1Pos;
|
||
|
int fw2Pos;
|
||
|
int fwSize;
|
||
|
char *tagName;
|
||
|
} CgiUploadFlashDef;
|
||
|
|
||
|
int cgiReadFlash(HttpdConnData *connData);
|
||
|
int cgiGetFirmwareNext(HttpdConnData *connData);
|
||
|
int cgiUploadFirmware(HttpdConnData *connData);
|
||
|
int cgiRebootFirmware(HttpdConnData *connData);
|
||
|
|
||
|
#endif
|