mirror of
https://github.com/obgm/libcoap.git
synced 2026-11-12 11:40:39 +03:00
Move coap_async_state_t to coap_async_internal.h and rename to coap_async_t as it no longer has any state. Refactor the async logic to simplify usage and provide libcoap based delay functionality support for request/response traffic such as multicast. Let libcoap decide when the delayed response is to be sent. Move internal async based function definitions to coap_async_internal.h. Replace most references to "struct coap_async_state_t" with "coap_async_t". Provide new functions to allow applications to access parts of coap_async_t as appropriate. Update examples to use these new access functions where appropriate. Add in new man page.
60 lines
1.4 KiB
C
60 lines
1.4 KiB
C
/*
|
|
* coap_internal.h -- Structures, Enums & Functions that are not exposed to
|
|
* application programming
|
|
*
|
|
* Copyright (C) 2019-2021 Jon Shallow <supjps-libcoap@jpshallow.com>
|
|
*
|
|
* This file is part of the CoAP library libcoap. Please see README for terms
|
|
* of use.
|
|
*/
|
|
|
|
/*
|
|
* All libcoap library files should include this file which then pulls in all
|
|
* of the other appropriate header files.
|
|
*
|
|
* Note: This file should never be included in application code (with the
|
|
* possible exception of internal test suites).
|
|
*/
|
|
|
|
/**
|
|
* @file coap_internal.h
|
|
* @brief Pulls together all the internal only header files
|
|
*/
|
|
|
|
#ifndef COAP_INTERNAL_H_
|
|
#define COAP_INTERNAL_H_
|
|
|
|
#include "coap_config.h"
|
|
|
|
/*
|
|
* Correctly set up assert() based on NDEBUG for libcoap
|
|
*/
|
|
#if defined(HAVE_ASSERT_H) && !defined(assert)
|
|
# include <assert.h>
|
|
#endif
|
|
|
|
#include "coap2/coap.h"
|
|
|
|
/*
|
|
* Include all the header files that are for internal use only.
|
|
*/
|
|
|
|
/* Not defined in coap.h - internal usage .h files */
|
|
#include "utlist.h"
|
|
#include "uthash.h"
|
|
#include "coap_hashkey.h"
|
|
#include "coap_mutex.h"
|
|
|
|
/* Specifically defined internal .h files */
|
|
#include "coap_asn1_internal.h"
|
|
#include "coap_async_internal.h"
|
|
#include "coap_block_internal.h"
|
|
#include "coap_cache_internal.h"
|
|
#include "coap_net_internal.h"
|
|
#include "coap_session_internal.h"
|
|
#include "coap_resource_internal.h"
|
|
#include "coap_subscribe_internal.h"
|
|
#include "coap_tcp_internal.h"
|
|
|
|
#endif /* COAP_INTERNAL_H_ */
|