Loading...
Searching...
No Matches
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
18
19#include "mutex.h"
20#include "net/nanocoap_sock.h"
21#include "vfs.h"
22
23#ifdef __cplusplus
24extern "C" {
25#endif
26
36
44
48typedef 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
char urlbuf[CONFIG_SOCK_URLPATH_MAXLEN]
full path of the directory
Definition fs.h:50
nanoCoAP remote file struct
Definition fs.h:40
uint32_t offset
offset into the file
Definition fs.h:41
char urlbuf[CONFIG_SOCK_URLPATH_MAXLEN]
full path to the file
Definition fs.h:42
nanoCoAP file system configuration
Definition fs.h:30
char urlbuf[CONFIG_SOCK_URLPATH_MAXLEN]
shared url buffer
Definition fs.h:34
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