Commit Graph
10 Commits
Author SHA1 Message Date
Olaf Bergmann f6b45cb674 Contiki: implement coap_malloc_type() for COAP_PDU
To get rid of the awful (and buggy!) ALIGNPTR stuff that used to
be in coap_pdu_clear(), a new memory type COAP_PDU_BUF has been
introduced for Contiki. This allows storing the message payload
in its own memory chunk similar to the way it is stored for lwIP.
2015-02-15 22:32:56 +01:00
Olaf Bergmann 99108e82d9 fixed alignment bug in PDU memory 2014-11-05 23:47:18 +01:00
Olaf Bergmann 8ac499548a fixed handling of COAP_PACKET in get_container() 2014-09-17 18:01:43 +02:00
Olaf Bergmann c47d2fea3c renamed config.h to coap_config.h to avoid name clashes 2014-09-15 17:31:54 +02:00
Olaf Bergmann a1ec0371ff Implemented new network-I/O functions for Contiki 2014-09-15 14:30:05 +02:00
Sebastian Sontberg c3e27870ac Fix old-style-definition warnings 2014-08-10 07:10:03 +02:00
Olaf Bergmann 77183cdc48 Use type tag in coap_free_type(). 2014-06-18 23:35:19 +02:00
Olaf Bergmann 0f0169ee24 suppress gnu compiler warning on unused parameter 2014-06-18 18:51:59 +02:00
Olaf Bergmann 4882cc1caf added missing includes for debug.h and assert.h 2014-06-18 18:28:13 +02:00
Olaf Bergmann 0d78eab2e1 Some small additions for combined memory management.
Two new functions coap_malloc_type() and coap_free_type() have been
added to centralize the typed memory allocation for Contiki and LWIP.
Currently, calls to memb_alloc(), memp_malloc() and coap_malloc() are
distributed across several modules. The idea of the new functions is
to centralize memory management in one place (mem.c). coap_malloc()
and coap_free() are still available as wrappers for the new functions.
2014-06-18 16:30:07 +02:00