aqhome: completed adapting to msgio2 interface.
This commit is contained in:
42
aqhome/http/endpoint_http_p.h
Normal file
42
aqhome/http/endpoint_http_p.h
Normal file
@@ -0,0 +1,42 @@
|
||||
/****************************************************************************
|
||||
* This file is part of the project AqHome.
|
||||
* AqHome (c) by 2023 Martin Preuss, all rights reserved.
|
||||
*
|
||||
* The license for this file can be found in the file COPYING which you
|
||||
* should have received along with this file.
|
||||
****************************************************************************/
|
||||
|
||||
#ifndef AQH_ENDPOINT_HTTP_P_H
|
||||
#define AQH_ENDPOINT_HTTP_P_H
|
||||
|
||||
|
||||
|
||||
#include "aqhome/http/endpoint_http.h"
|
||||
|
||||
#include <gwenhywfar/db.h>
|
||||
#include <gwenhywfar/buffer.h>
|
||||
|
||||
|
||||
enum {
|
||||
AQH_EndpointHttpd_ReadMode_Command=0,
|
||||
AQH_EndpointHttpd_ReadMode_Headers,
|
||||
AQH_EndpointHttpd_ReadMode_Body
|
||||
};
|
||||
|
||||
|
||||
|
||||
typedef struct AQH_ENDPOINT_HTTP AQH_ENDPOINT_HTTP;
|
||||
struct AQH_ENDPOINT_HTTP {
|
||||
int readMode;
|
||||
GWEN_BUFFER *currentReadBuffer;
|
||||
GWEN_DB_NODE *currentReadCommand;
|
||||
GWEN_DB_NODE *currentReadHeader;
|
||||
int currentBodyPos;
|
||||
int currentBodySize;
|
||||
int lastLineStartPos;
|
||||
};
|
||||
|
||||
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user