pdu.h 376 B

12345678910111213141516171819202122232425
  1. #ifndef _PDU_H
  2. #define _PDU_H 1
  3. #ifdef __cplusplus
  4. extern "C" {
  5. #endif
  6. #include "coap.h"
  7. /** Header structure for CoAP PDUs */
  8. typedef struct {
  9. coap_rw_buffer_t scratch;
  10. coap_packet_t *pkt;
  11. coap_rw_buffer_t msg; /**< the CoAP msg to send */
  12. } coap_pdu_t;
  13. coap_pdu_t *coap_new_pdu(void);
  14. void coap_delete_pdu(coap_pdu_t *pdu);
  15. #ifdef __cplusplus
  16. }
  17. #endif
  18. #endif