Loading...
Searching...
No Matches
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
27extern "C" {
28#endif
29
39typedef int (*coap_link_format_handler_t)(char *entry, void *ctx);
40
52int nanocoap_link_format_get(nanocoap_sock_t *sock, const char *path,
53 coap_link_format_handler_t cb, void *arg);
54
65int nanocoap_link_format_get_url(const char *url,
66 coap_link_format_handler_t cb, void *arg);
67
68#ifdef __cplusplus
69}
70#endif
71#endif /* NET_NANOCOAP_LINK_FORMAT_H */
nanocoap high-level API
NanoCoAP socket struct.