Loading...
Searching...
No Matches
fs.h
Go to the documentation of this file.
1/*
2 * Copyright (C) 2024 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
19#ifndef NET_NANOCOAP_FS_H
20#define NET_NANOCOAP_FS_H
21
22#include "mutex.h"
23#include "net/nanocoap_sock.h"
24#include "vfs.h"
25
26#ifdef __cplusplus
27extern "C" {
28#endif
29
33typedef struct {
34 const char *url;
39
43typedef struct {
44 uint32_t offset;
47
51typedef struct {
52 uint32_t offset;
55
62
63#ifdef __cplusplus
64}
65#endif
66#endif /* NET_NANOCOAP_FS_H */
const vfs_file_system_t nanocoap_fs_file_system
nanoCoAP file system driver
#define CONFIG_SOCK_URLPATH_MAXLEN
maximum length path for sock_urlsplit()
Definition config.h:48
Mutex for thread synchronization.
nanocoap high-level API
Mutex structure.
Definition mutex.h:146
nanoCoAP remote dir struct
Definition fs.h:51
uint32_t offset
current directory element
Definition fs.h:52
nanoCoAP remote file struct
Definition fs.h:43
uint32_t offset
offset into the file
Definition fs.h:44
nanoCoAP file system configuration
Definition fs.h:33
nanocoap_sock_t sock
connection to the remote server
Definition fs.h:35
mutex_t lock
lock for common urlbuf
Definition fs.h:36
const char * url
base URL of the remote fs
Definition fs.h:34
NanoCoAP socket struct.
A file system driver.
Definition vfs.h:375