mirror of
https://github.com/obgm/libcoap.git
synced 2026-11-02 07:55:46 +03:00
Generally re-organize option handling, making use of enums etc. This also updates critical options checks, and well as repeatable options.
55 lines
1.1 KiB
C
55 lines
1.1 KiB
C
/*
|
|
* coap_debug_internal.h -- debug utilities
|
|
*
|
|
* Copyright (C) 2010-2011,2014-2026 Olaf Bergmann <bergmann@tzi.org>
|
|
*
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
*
|
|
* This file is part of the CoAP library libcoap. Please see README for terms
|
|
* of use.
|
|
*/
|
|
|
|
/**
|
|
* @file coap_debug_internal.h
|
|
* @brief CoAP Logging support internal information
|
|
*/
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
#ifndef COAP_DEBUG_INTERNAL_H_
|
|
#define COAP_DEBUG_INTERNAL_H_
|
|
|
|
/**
|
|
* Check to see whether a packet should be sent or not.
|
|
*
|
|
* Internal function
|
|
*
|
|
* @return @c 1 if packet is to be sent, @c 0 if packet is to be dropped.
|
|
*/
|
|
int coap_debug_send_packet(void);
|
|
|
|
/**
|
|
* Reset all the defined logging parameters.
|
|
*
|
|
* Internal function
|
|
*/
|
|
void coap_debug_reset(void);
|
|
|
|
/**
|
|
* Output ascii representation of option number, if known.
|
|
*
|
|
* @param code The PDU code.
|
|
* @param number The option number.
|
|
*
|
|
* @return Ascii representation or numeric value in ascii.
|
|
*/
|
|
const char *coap_option_string(coap_pdu_code_t code, coap_option_num_t number);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif /* COAP_DEBUG_INTERNAL_H_ */
|