-
Notifications
You must be signed in to change notification settings - Fork 1
/
HTTPPrint.h
76 lines (66 loc) · 1.66 KB
/
HTTPPrint.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
/**************************************************************
* HTTPPrint.h
* Provides callback headers and resolution for user's custom
* HTTP Application.
*
* This file is automatically generated by the MPFS Utility
* ALL MODIFICATIONS WILL BE OVERWRITTEN BY THE MPFS GENERATOR
**************************************************************/
#ifndef __HTTPPRINT_H
#define __HTTPPRINT_H
#include "TCPIP Stack/TCPIP.h"
#if defined(STACK_USE_HTTP2_SERVER)
extern HTTP_STUB httpStubs[MAX_HTTP_CONNECTIONS];
extern BYTE curHTTPID;
void HTTPPrint(DWORD callbackID);
void HTTPPrint_zero_bute(void);
void HTTPPrint_haut_bute(void);
void HTTPPrint_bas_bute(void);
void HTTPPrint_pot_value(void);
void HTTPPrint_etat_save(void);
void HTTPPrint_incdir(void);
void HTTPPrint_incvit(void);
void HTTPPrint(DWORD callbackID)
{
switch(callbackID)
{
case 0x00000000:
HTTPIncFile((ROM BYTE*)"header.inc");
break;
case 0x00000001:
HTTPIncFile((ROM BYTE*)"footer.inc");
break;
case 0x00000007:
HTTPPrint_zero_bute();
break;
case 0x00000008:
HTTPPrint_haut_bute();
break;
case 0x00000009:
HTTPPrint_bas_bute();
break;
case 0x0000000a:
HTTPPrint_pot_value();
break;
case 0x0000000e:
HTTPPrint_etat_save();
break;
case 0x0000000f:
HTTPPrint_incdir();
break;
case 0x00000010:
HTTPPrint_incvit();
break;
default:
// Output notification for undefined values
TCPPutROMArray(sktHTTP, (ROM BYTE*)"!DEF", 4);
}
return;
}
void HTTPPrint_(void)
{
TCPPut(sktHTTP, '~');
return;
}
#endif
#endif