39 #include "contiki-net.h"
45 struct psock sin, sout;
46 struct pt outputpt, scriptpt;
50 struct httpd_fs_file file;
60 #define HTTPD_STRING_TYPE PROGMEM_TYPE
61 #define PROGMEM_TYPE 1
64 #if HTTPD_STRING_TYPE==PROGMEM_TYPE
65 #define HTTPD_STRING_ATTR PROGMEM
67 #define httpd_memcpy memcpy_P
68 #define httpd_strcpy strcpy_P
69 #define httpd_strcmp strcmp_P
70 #define httpd_strncmp strncmp_P
71 #define httpd_strlen strlen_P
72 #define httpd_snprintf snprintf_P
73 #elif HTTPD_STRING_TYPE==EEPROM_TYPE
74 #define HTTPD_STRING_ATTR EEPROM
76 #define httpd_memcpy memcpy_E
77 #define httpd_strcpy strcpy_E
78 #define httpd_strcmp strcmp_E
79 #define httpd_strncmp strncmp_E
80 #define httpd_strlen strlen_E
81 #define httpd_snprintf snprintf_E
83 #define httpd_memcpy memcpy
84 #define httpd_strcpy strcpy
85 #define httpd_strcmp strcmp
86 #define httpd_strncmp strncmp
87 #define httpd_strlen strlen
88 #define httpd_snprintf snprintf
91 void httpd_init(
void);
92 void httpd_appcall(
void *state);