• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * coap_internal.h -- Structures, Enums & Functions that are not exposed to
3  * application programming
4  *
5  * Copyright (C) 2019 Jon Shallow <supjps-libcoap@jpshallow.com>
6  * Copyright (c) 2021 Huawei Device Co., Ltd. All rights reserved.
7  *
8  * This file is part of the CoAP library libcoap. Please see README for terms
9  * of use.
10  */
11 
12 /*
13  * All libcoap library files should include this file which then pulls in all
14  * of the other appropriate header files.
15  *
16  * Note: This file should never be included in application code (with the
17  * possible exception of internal test suites).
18  */
19 
20 /**
21  * @file coap_internal.h
22  * @brief Pulls together all the internal only header files
23  */
24 
25 #ifndef COAP_INTERNAL_H_
26 #define COAP_INTERNAL_H_
27 
28 #include "coap_config.h"
29 
30 /*
31  * Correctly set up assert() based on NDEBUG for libcoap
32  */
33 #if defined(HAVE_ASSERT_H) && !defined(assert)
34 # include <assert.h>
35 #endif
36 
37 #include "coap.h"
38 
39 /*
40  * Include all the header files that are for internal use only.
41  */
42 
43 /* Not defined in coap.h - internal usage .h files */
44 #include "utlist.h"
45 #include "uthash.h"
46 #include "coap_hashkey.h"
47 #include "coap_mutex.h"
48 
49 /* Specifically defined internal .h files */
50 #include "coap_session_internal.h"
51 #include "coap_subscribe_internal.h"
52 
53 #define COAP_INTERFACE_MAX 16
54 
55 #endif /* COAP_INTERNAL_H_ */
56