21#ifndef COAP_DEBUG_INTERNAL_H_
22#define COAP_DEBUG_INTERNAL_H_
75#if (defined(__GNUC__))
76int coap_snprintf(
char *buffer,
size_t buf_size,
size_t *offset,
77 const char *format, ...) __attribute__((format(printf, 4, 5)));
79int coap_snprintf(
char *buffer,
size_t buf_size,
size_t *offset,
const char *format, ...);
int coap_debug_recv_packet(void)
Check to see whether an incoming packet should be dropped or not.
const char * coap_option_string(coap_pdu_code_t code, coap_option_num_t number)
Output ascii representation of option number, if known.
int coap_snprintf(char *buffer, size_t buf_size, size_t *offset, const char *format,...)
The equivalent to snprintf() functionality, but returning the actual characters added and defining th...
int coap_debug_send_packet(void)
Check to see whether a packet should be sent or not.
void coap_debug_reset(void)
Reset all the defined logging parameters.
uint16_t coap_option_num_t
coap_pdu_code_t
Set of codes available for a PDU.