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 
21 #include "net/nanocoap_sock.h"
22 
23 #ifdef __cplusplus
24 extern "C" {
25 #endif
26 
36 typedef int (*coap_link_format_handler_t)(char *entry, void *ctx);
37 
51 int nanocoap_link_format_get(nanocoap_sock_t *sock, const char *path,
52  coap_link_format_handler_t cb, void *arg,
53  char *dirent_buf, size_t dirent_buf_len);
54 
67 int nanocoap_link_format_get_url(const char *url,
68  coap_link_format_handler_t cb, void *arg,
69  char *dirent_buf, size_t dirent_buf_len);
70 
71 #ifdef __cplusplus
72 }
73 #endif
nanocoap high-level API
NanoCoAP socket struct.