Loading...
Searching...
No Matches
coap_uri_internal.h
Go to the documentation of this file.
/*
* coap_uri_internal.h -- URI functions for libcoap
*
* Copyright (C) 2019--2024 Olaf Bergmann <bergmann@tzi.org> and others
*
* SPDX-License-Identifier: BSD-2-Clause
*
* This file is part of the CoAP library libcoap. Please see README for terms
* of use.
*/
#ifndef COAP_URI_INTERNAL_H_
#define COAP_URI_INTERNAL_H_
#include "coap_internal.h"
typedef struct {
const char *name;
uint16_t port;
uint16_t proxy_only;
coap_uri_scheme_t scheme;
} coap_uri_info_t;
extern coap_uri_info_t coap_uri_scheme[COAP_URI_SCHEME_LAST];
void coap_replace_percents(coap_optlist_t *optlist);
#endif /* COAP_URI_INTERNAL_H_ */
coap_internal.h
Pulls together all the internal only header files.
coap_uri_scheme_t
coap_uri_scheme_t
The scheme specifiers.
Definition coap_uri.h:28
COAP_URI_SCHEME_LAST
@ COAP_URI_SCHEME_LAST
Definition coap_uri.h:37
coap_uri_scheme
coap_uri_info_t coap_uri_scheme[COAP_URI_SCHEME_LAST]
Definition coap_uri.c:51
coap_replace_percents
void coap_replace_percents(coap_optlist_t *optlist)
replace any % hex definitions with the actual character.
Definition coap_uri.c:710
coap_optlist_t
Representation of chained list of CoAP options to install.
Definition coap_option.h:325
coap_uri_info_t
Definition coap_uri_internal.h:29
coap_uri_info_t::proxy_only
uint16_t proxy_only
set if proxy support only
Definition coap_uri_internal.h:32
coap_uri_info_t::name
const char * name
scheme name
Definition coap_uri_internal.h:30
coap_uri_info_t::scheme
coap_uri_scheme_t scheme
scheme
Definition coap_uri_internal.h:33
coap_uri_info_t::port
uint16_t port
default scheme port
Definition coap_uri_internal.h:31