Using one header file for esp8266 stuff

This commit is contained in:
Jindra Dolezy
2015-04-11 00:35:55 +02:00
parent a1b8b82816
commit d419bdb4f7
16 changed files with 37 additions and 86 deletions
+1 -9
View File
@@ -12,17 +12,9 @@ HTTP auth implementation. Only does basic authentication for now.
*/
#include <string.h>
#include <osapi.h>
#include "user_interface.h"
#include "mem.h"
#include "httpd.h"
#include "cgi.h"
#include <esp8266.h>
#include "auth.h"
#include "io.h"
#include "base64.h"
#include <ip_addr.h>
#include "espmissingincludes.h"
int ICACHE_FLASH_ATTR authBasic(HttpdConnData *connData) {
const char *forbidden="401 Forbidden.";
+2
View File
@@ -1,6 +1,8 @@
#ifndef AUTH_H
#define AUTH_H
#include "httpd.h"
#ifndef HTTP_AUTH_REALM
#define HTTP_AUTH_REALM "Protected"
#endif
+1 -5
View File
@@ -1,10 +1,6 @@
/* base64.c : base-64 / MIME encode/decode */
/* PUBLIC DOMAIN - Jon Mayo - November 13, 2003 */
#include "c_types.h"
#include <stdio.h>
#include <stdint.h>
#include <stdlib.h>
#include <ctype.h>
#include <esp8266.h>
#include "base64.h"
static const uint8_t base64dec_tab[256]= {
+1 -7
View File
@@ -12,13 +12,7 @@ Esp8266 http server - core routines
*/
#include "espmissingincludes.h"
#include "c_types.h"
#include "user_interface.h"
#include "espconn.h"
#include "mem.h"
#include "osapi.h"
#include <esp8266.h>
#include "httpd.h"
-3
View File
@@ -1,8 +1,5 @@
#ifndef HTTPD_H
#define HTTPD_H
#include <c_types.h>
#include <ip_addr.h>
#include <espconn.h>
#define HTTPDVER "0.3"
+2 -8
View File
@@ -11,15 +11,9 @@ Connector to let httpd use the espfs filesystem to serve the files in it.
* ----------------------------------------------------------------------------
*/
#include "espmissingincludes.h"
#include <string.h>
#include <osapi.h>
#include "c_types.h"
#include "user_interface.h"
#include "espconn.h"
#include "mem.h"
#include <esp8266.h>
#include "httpdespfs.h"
#include "espfs.h"
//This is a catch-all cgi function. It takes the url passed to it, looks up the corresponding
-1
View File
@@ -2,7 +2,6 @@
#define HTTPDESPFS_H
#include "httpd.h"
#include "espfs.h"
int cgiEspFsHook(HttpdConnData *connData);
int ICACHE_FLASH_ATTR cgiEspFsTemplate(HttpdConnData *connData);