link_format.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2022 ML!PA Consulting GmbH
3  *
4  * This file is subject to the terms and conditions of the GNU Lesser
5  * General Public License v2.1. See the file LICENSE in the top level
6  * directory for more details.
7  */
8 
21 #ifndef NET_NANOCOAP_LINK_FORMAT_H
22 #define NET_NANOCOAP_LINK_FORMAT_H
23 
24 #include "net/nanocoap_sock.h"
25 
26 #ifdef __cplusplus
27 extern "C" {
28 #endif
29 
39 typedef int (*coap_link_format_handler_t)(char *entry, void *ctx);
40 
54 int nanocoap_link_format_get(nanocoap_sock_t *sock, const char *path,
55  coap_link_format_handler_t cb, void *arg,
56  char *dirent_buf, size_t dirent_buf_len);
57 
70 int nanocoap_link_format_get_url(const char *url,
71  coap_link_format_handler_t cb, void *arg,
72  char *dirent_buf, size_t dirent_buf_len);
73 
74 #ifdef __cplusplus
75 }
76 #endif
77 #endif /* NET_NANOCOAP_LINK_FORMAT_H */
nanocoap high-level API
NanoCoAP socket struct.