fs.h
Go to the documentation of this file.
1 /*
2  * SPDX-FileCopyrightText: 2024 ML!PA Consulting GmbH
3  * SPDX-License-Identifier: LGPL-2.1-only
4  */
5 
6 #pragma once
7 
19 #include "mutex.h"
20 #include "net/nanocoap_sock.h"
21 #include "vfs.h"
22 
23 #ifdef __cplusplus
24 extern "C" {
25 #endif
26 
30 typedef struct {
31  const char *url;
36 
40 typedef struct {
41  uint32_t offset;
44 
48 typedef struct {
49  uint32_t offset;
52 
59 
60 #ifdef __cplusplus
61 }
62 #endif
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:44
Mutex for thread synchronization.
nanocoap high-level API
Mutex structure.
Definition: mutex.h:36
nanoCoAP remote dir struct
Definition: fs.h:48
uint32_t offset
current directory element
Definition: fs.h:49
nanoCoAP remote file struct
Definition: fs.h:40
uint32_t offset
offset into the file
Definition: fs.h:41
nanoCoAP file system configuration
Definition: fs.h:30
nanocoap_sock_t sock
connection to the remote server
Definition: fs.h:32
mutex_t lock
lock for common urlbuf
Definition: fs.h:33
const char * url
base URL of the remote fs
Definition: fs.h:31
NanoCoAP socket struct.
A file system driver.
Definition: vfs.h:386