resource.c: Increase use of coap_malloc_type() and coap_free_type()

coap_malloc_type() and coap_free_type() provide an abstract API for
dynamic memory management on different platforms. resource.c still
is in transition and needs more cleanup.
This commit is contained in:
Olaf Bergmann committed 2015-03-11 14:59:40 +01:00
1 parent d55bd85e14
commit ecda1426ac
3 files changed
+16 -25

No files matched your search

+1 -1
View File
@@ -28,7 +28,7 @@ void coap_memory_init(void);
* memory management on constrained devices.
*/
typedef enum {
COAP_STRING, COAP_ATTRIBUTE_NAME, COAP_ATTRIBUTE_VALUE, COAP_PACKET, COAP_NODE, COAP_CONTEXT, COAP_ENDPOINT, COAP_PDU, COAP_PDU_BUF
COAP_STRING, COAP_ATTRIBUTE_NAME, COAP_ATTRIBUTE_VALUE, COAP_PACKET, COAP_NODE, COAP_CONTEXT, COAP_ENDPOINT, COAP_PDU, COAP_PDU_BUF, COAP_RESOURCE, COAP_RESOURCEATTR
} coap_memory_tag_t;
#ifndef WITH_LWIP