libcoap  4.1.1
 All Data Structures Files Functions Variables Typedefs Macros Groups Pages
lwippools.h
Go to the documentation of this file.
1 
7 #include <net.h>
8 #include <subscribe.h>
9 #include <resource.h>
10 
11 #ifndef MEMP_NUM_COAPCONTEXT
12 #define MEMP_NUM_COAPCONTEXT 1
13 #endif
14 
15 #ifndef MEMP_NUM_COAPNODE
16 #define MEMP_NUM_COAPNODE 4
17 #endif
18 
19 #ifndef MEMP_NUM_COAP_SUBSCRIPTION
20 #define MEMP_NUM_COAP_SUBSCRIPTION 4
21 #endif
22 
23 #ifndef MEMP_NUM_COAPRESOURCE
24 #define MEMP_NUM_COAPRESOURCE 10
25 #endif
26 
27 #ifndef MEMP_NUM_COAPRESOURCEATTR
28 #define MEMP_NUM_COAPRESOURCEATTR 20
29 #endif
30 
31 LWIP_MEMPOOL(COAP_CONTEXT, MEMP_NUM_COAPCONTEXT, sizeof(coap_context_t), "COAP_CONTEXT")
32 LWIP_MEMPOOL(COAP_NODE, MEMP_NUM_COAPNODE, sizeof(coap_queue_t), "COAP_NODE")
33 LWIP_MEMPOOL(COAP_subscription, MEMP_NUM_COAP_SUBSCRIPTION, sizeof(coap_subscription_t), "COAP_subscription")
34 LWIP_MEMPOOL(COAP_RESOURCE, MEMP_NUM_COAPRESOURCE, sizeof(coap_resource_t), "COAP_RESOURCE")
35 LWIP_MEMPOOL(COAP_RESOURCEATTR, MEMP_NUM_COAPRESOURCEATTR, sizeof(coap_attr_t), "COAP_RESOURCEATTR")