LexLeo 0.0.0-dev+f8e5087-dirty
Technical documentation
Loading...
Searching...
No Matches
osal_file_ops.h
Go to the documentation of this file.
1// src/foundation/osal/osal_file/include/osal/file/osal_file_ops.h
2
3#ifndef LEXLEO_OSAL_FILE_OPS_H
4#define LEXLEO_OSAL_FILE_OPS_H
5
6#include "osal/file/osal_file_types.h"
7
9
10#ifdef __cplusplus
11extern "C" {
12#endif
13
15
16typedef struct osal_file_ops_t {
17 osal_file_t *(*open)(
18 const char *path_utf8,
19 uint32_t flags,
20 osal_file_status_t *status,
21 const osal_file_env_t *env );
22 size_t (*read)(
23 osal_file_t *f,
24 void *buf,
25 size_t n,
26 osal_file_status_t *status );
27 size_t (*write)(
28 osal_file_t *f,
29 const void *buf,
30 size_t n,
31 osal_file_status_t *status );
35
37
38#ifdef __cplusplus
39}
40#endif
41
42#endif //LEXLEO_OSAL_FILE_OPS_H
const osal_file_ops_t * osal_file_default_ops(void)
Return the default OSAL file operations for the active platform.
struct osal_file_ops osal_file_ops_t
Operations table for the low-level OSAL file abstraction.
osal_file_status_t
size_t(* write)(osal_file_t *f, const void *buf, size_t n, osal_file_status_t *status)
osal_file_status_t(* close)(osal_file_t *f)
osal_file_status_t(* flush)(osal_file_t *f)
size_t(* read)(osal_file_t *f, void *buf, size_t n, osal_file_status_t *status)