libcoap 4.3.5-develop-5347a62
Loading...
Searching...
No Matches
coap_debug_internal.h
Go to the documentation of this file.
1/*
2 * coap_debug_internal.h -- debug utilities
3 *
4 * Copyright (C) 2010-2011,2014-2026 Olaf Bergmann <bergmann@tzi.org>
5 *
6 * SPDX-License-Identifier: BSD-2-Clause
7 *
8 * This file is part of the CoAP library libcoap. Please see README for terms
9 * of use.
10 */
11
16
17#ifdef __cplusplus
18extern "C" {
19#endif
20
21#ifndef COAP_DEBUG_INTERNAL_H_
22#define COAP_DEBUG_INTERNAL_H_
23
32
41
47void coap_debug_reset(void);
48
58
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)));
78#else
79int coap_snprintf(char *buffer, size_t buf_size, size_t *offset, const char *format, ...);
80#endif
81
82#ifdef __cplusplus
83}
84#endif
85
86#endif /* COAP_DEBUG_INTERNAL_H_ */
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.
Definition coap_debug.c:640
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...
Definition coap_debug.c:230
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
Definition coap_option.h:37
coap_pdu_code_t
Set of codes available for a PDU.
Definition coap_pdu.h:259