You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
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
|