• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * coap_uri_internal.h -- URI functions for libcoap
3  *
4  * Copyright (C) 2019--2023 Olaf Bergmann <bergmann@tzi.org> and others
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 
12 /**
13  * @file coap_uri_internal.h
14  * @brief CoAP URI internal information
15  */
16 
17 #ifndef COAP_URI_INTERNAL_H_
18 #define COAP_URI_INTERNAL_H_
19 
20 #include "coap_internal.h"
21 
22 /**
23  * @ingroup internal_api
24  * @defgroup uri URI Support
25  * Internal API for handling CoAP URIs
26  * @{
27  */
28 
29 typedef struct {
30   const char *name;         /**< scheme name */
31   uint16_t port;            /**< default scheme port */
32   uint16_t proxy_only;      /**< set if proxy support only */
33   coap_uri_scheme_t scheme; /**< scheme */
34 } coap_uri_info_t;
35 
36 extern coap_uri_info_t coap_uri_scheme[COAP_URI_SCHEME_LAST];
37 
38 /** @} */
39 
40 #endif /* COAP_URI_INTERNAL_H_ */
41