29#ifndef BD_FILESYSTEM_H_
30#define BD_FILESYSTEM_H_
38#ifdef BLURAY_API_EXPORT
39#include "util/attributes.h"
40#elif !defined(BD_PUBLIC)
60 void (*
close) (BD_FILE_H *file);
74 int64_t (*
seek) (BD_FILE_H *file, int64_t offset, int32_t origin);
82 int64_t (*
tell) (BD_FILE_H *file);
92 int (*
eof) (BD_FILE_H *file);
102 int64_t (*
read) (BD_FILE_H *file, uint8_t *buf, int64_t size);
114 int64_t (*
write) (BD_FILE_H *file,
const uint8_t *buf, int64_t size);
161typedef BD_FILE_H* (*BD_FILE_OPEN)(
const char* filename,
const char *mode);
171typedef BD_DIR_H* (*BD_DIR_OPEN) (
const char* dirname);
BD_PUBLIC BD_FILE_OPEN bd_register_file(BD_FILE_OPEN p)
Register function pointer that will be used to open a file.
BD_PUBLIC BD_DIR_OPEN bd_register_dir(BD_DIR_OPEN p)
Register function pointer that will be used to open a directory.
BD_FILE_H *(* BD_FILE_OPEN)(const char *filename, const char *mode)
Open a file.
Definition filesystem.h:161
BD_DIR_H *(* BD_DIR_OPEN)(const char *dirname)
Open a directory.
Definition filesystem.h:171
Directory entry.
Definition filesystem.h:122
char d_name[256]
Null-terminated filename.
Definition filesystem.h:123
Directory access.
Definition filesystem.h:132
void(* close)(BD_DIR_H *dir)
Close directory stream.
Definition filesystem.h:140
int(* read)(BD_DIR_H *dir, BD_DIRENT *entry)
Read next directory entry.
Definition filesystem.h:149
void * internal
reserved for BD_DIR_H implementation use
Definition filesystem.h:133
File access.
Definition filesystem.h:49
int64_t(* tell)(BD_FILE_H *file)
Get current read or write position.
Definition filesystem.h:82
void * internal
Reserved for BD_FILE_H implementation use.
Definition filesystem.h:53
void(* close)(BD_FILE_H *file)
Close file.
Definition filesystem.h:60
int64_t(* read)(BD_FILE_H *file, uint8_t *buf, int64_t size)
Read from file.
Definition filesystem.h:102
int(* eof)(BD_FILE_H *file)
Check for end of file.
Definition filesystem.h:92
int64_t(* seek)(BD_FILE_H *file, int64_t offset, int32_t origin)
Reposition file offset.
Definition filesystem.h:74
int64_t(* write)(BD_FILE_H *file, const uint8_t *buf, int64_t size)
Write to file.
Definition filesystem.h:114