WISP ERT (Client)  1.0.0
The WISP Extended Runtime (WISP side)
fs.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include <stddef.h>
4 #include <sys/types.h>
5 #include <ert/runtime.h>
6 
17 extern ert_status_t ert_open(
18  const char* path,
19  int flags,
20  mode_t mode,
21  void* cb_data,
23 );
24 
33 extern ert_status_t ert_close(
34  int fd,
35  void* cb_data,
37 );
38 
48 extern ert_status_t ert_read(
49  int fd,
50  size_t size,
51  void* cb_data,
53 );
54 
65 extern ert_status_t ert_write(
66  int fd,
67  const void* buf,
68  size_t size,
69  void* cb_data,
71 );
wio_status_t ert_status_t
ERT status type.
Definition: runtime.h:18
ert_status_t ert_write(int fd, const void *buf, size_t size, void *cb_data, wio_callback_t cb)
Write data to remote file.
Definition: fs.c:147
ert_status_t ert_close(int fd, void *cb_data, wio_callback_t cb)
Close a remote file.
Definition: fs.c:88
ert_status_t ert_read(int fd, size_t size, void *cb_data, wio_callback_t cb)
Read data from remote file.
Definition: fs.c:117
wio_status_t(* wio_callback_t)(void *, wio_status_t, void *)
WIO callback type.
Definition: defs.h:42
ert_status_t ert_open(const char *path, int flags, mode_t mode, void *cb_data, wio_callback_t cb)
Open a remote file.
Definition: fs.c:57
uint16_t mode_t
File mode type.
Definition: types.h:6