1 /*
2  * Copyright (C) 2015-2018 Alibaba Group Holding Limited
3  */
4 
5 #ifndef __COAP_INTERNAL_H__
6 #define __COAP_INTERNAL_H__
7 #include "CoAPNetwork.h"
8 #include "CoAPExport.h"
9 #include "iotx_coap_internal.h"
10 
11 #ifdef __cplusplus
12 extern "C" {
13 #endif /* __cplusplus */
14 
15 typedef struct {
16     void *list_mutex;
17     struct list_head list;
18     unsigned char count;
19     unsigned char maxcount;
20 } CoAPList;
21 
22 typedef struct {
23     unsigned short message_id;
24     NetworkContext *p_network;
25     CoAPEventNotifier notifier;
26     unsigned char *sendbuf;
27     unsigned char *recvbuf;
28     CoAPList sendlist;
29     CoAPList obsserver;
30     CoAPList obsclient;
31     CoAPList resource;
32     unsigned int waittime;
33     void *appdata;
34     void *mutex;
35 } CoAPIntContext;
36 
37 #ifdef __cplusplus
38 }
39 #endif /* __cplusplus */
40 
41 #endif
42