20#ifndef LEXLEO_OSAL_FILE_OPS_H
21#define LEXLEO_OSAL_FILE_OPS_H
34#include "osal/file/osal_file_types.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.
Private representation of an acquired OSAL file handle.
Operations table for the low-level OSAL file abstraction.
size_t(* write)(const void *ptr, size_t size, size_t nmemb, OSAL_FILE *stream, osal_file_status_t *st)
Write elements to an open OSAL_FILE.
size_t(* read)(void *ptr, size_t size, size_t nmemb, OSAL_FILE *stream, osal_file_status_t *st)
Read elements from an open OSAL_FILE.
osal_file_status_t(* close)(OSAL_FILE *stream)
Close an open OSAL_FILE and release its associated resource.
osal_file_status_t(* open)(OSAL_FILE **out, const char *pathname, const char *mode, const osal_mem_ops_t *mem_ops)
Open a file resource.
osal_file_status_t(* flush)(OSAL_FILE *stream)
Flush buffered output associated with an open OSAL_FILE.