BugID:17134554: fixed aos compile error first
#ifndef IOT_EXPORT_HTTP2_H
#define IOT_EXPORT_HTTP2_H
-#include "lite-list.h"
#ifdef __cplusplus
extern "C" {
@@ -19,6 +18,11 @@ typedef enum {
} http2_flag;
+typedef struct http2_list_s {
+ struct http2_list_s *prev;
+ struct http2_list_s *next;
+} http2_list_t;
+
typedef struct http2_connection {
void *network; /* iot network ptr */
void *session; /* http2 session */
@@ -34,7 +38,7 @@ typedef struct http2_connection {
void *mutex;
void *thread_handle;
- struct list_head stream_list;
+ http2_list_t stream_list;
} http2_connection_t;
typedef struct http2_header_struct {
@@ -57,7 +61,7 @@ typedef struct {
unsigned int stream_id; /* http2 protocol stream id */
char *app_stream_id; /* bidirectioin stream app stream id */
unsigned char stream_type; /* upstream or downstream */
- struct list_head list; /* list_head */
+ http2_list_t list; /* list_head */
} http2_stream_node_t;
typedef void (*on_user_header_callback)(int cat,const uint8_t *name,size_t namelen,
@@ -133,7 +137,7 @@ extern int iotx_http2_update_window_size(http2_connection_t *conn);
* @param[in] handler: http2 client connection handler.
* @return The result. 0 is ok.
*/
-extern int iotx_http_exec_io(http2_connection_t *connection);
+extern int iotx_http2_exec_io(http2_connection_t *connection);
#ifdef __cplusplus
}
#endif
