25#ifndef ULTRALIGHT_CAPI_FILESYSTEM_H
26#define ULTRALIGHT_CAPI_FILESYSTEM_H
Various defines and utility functions for the C API.
struct C_String * ULString
Definition CAPI_Defines.h:65
struct C_Buffer * ULBuffer
Definition CAPI_Defines.h:66
ULBuffer(* ULFileSystemOpenFileCallback)(ULString path)
Open file for reading and map it to a Buffer.
Definition CAPI_FileSystem.h:75
bool(* ULFileSystemFileExistsCallback)(ULString path)
The callback invoked when the FileSystem wants to check if a file path exists, return true if it exis...
Definition CAPI_FileSystem.h:42
ULString(* ULFileSystemGetFileMimeTypeCallback)(ULString path)
Get the mime-type of the file (eg "text/html").
Definition CAPI_FileSystem.h:53
ULString(* ULFileSystemGetFileCharsetCallback)(ULString path)
Get the charset / encoding of the file (eg "utf-8").
Definition CAPI_FileSystem.h:65
User-defined file system interface.
Definition CAPI_FileSystem.h:83
ULFileSystemOpenFileCallback open_file
Definition CAPI_FileSystem.h:87
ULFileSystemGetFileCharsetCallback get_file_charset
Definition CAPI_FileSystem.h:86
ULFileSystemFileExistsCallback file_exists
Definition CAPI_FileSystem.h:84
ULFileSystemGetFileMimeTypeCallback get_file_mime_type
Definition CAPI_FileSystem.h:85