Loading...
Searching...
No Matches
link_format.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2022 ML!PA Consulting GmbH
3 * SPDX-License-Identifier: LGPL-2.1-only
4 */
5
6#pragma once
7
20
21#include "net/nanocoap_sock.h"
22
23#ifdef __cplusplus
24extern "C" {
25#endif
26
36typedef int (*coap_link_format_handler_t)(char *entry, void *ctx);
37
57int nanocoap_link_format_get(nanocoap_sock_t *sock, const char *path,
58 coap_link_format_handler_t cb, void *arg,
59 char *dirent_buf, size_t dirent_buf_len);
60
79int nanocoap_link_format_get_url(const char *url,
80 coap_link_format_handler_t cb, void *arg,
81 char *dirent_buf, size_t dirent_buf_len);
82
83#ifdef __cplusplus
84}
85#endif
nanocoap high-level API
NanoCoAP socket struct.