git.cweiske.de
/
enigma2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
german translations for the new software update
[enigma2.git]
/
lib
/
base
/
rawfile.h
diff --git
a/lib/base/rawfile.h
b/lib/base/rawfile.h
index fdeb4d403a2038885bdb456794008f7092e98353..859f10ba15397f3fa47872caabf67e6439273a39 100644
(file)
--- a/
lib/base/rawfile.h
+++ b/
lib/base/rawfile.h
@@
-9,7
+9,7
@@
public:
eRawFile();
~eRawFile();
eRawFile();
~eRawFile();
- int open(const char *filename);
+ int open(const char *filename
, int cached = 0
);
void setfd(int fd);
off_t lseek(off_t offset, int whence);
int close();
void setfd(int fd);
off_t lseek(off_t offset, int whence);
int close();
@@
-17,7
+17,10
@@
public:
off_t length();
int valid();
private:
off_t length();
int valid();
private:
- int m_fd;
+ int m_fd; /* for uncached */
+ FILE *m_file; /* for cached */
+
+ int m_cached;
std::string m_basename;
off_t m_splitsize, m_totallength, m_current_offset, m_base_offset, m_last_offset;
int m_nrfiles;
std::string m_basename;
off_t m_splitsize, m_totallength, m_current_offset, m_base_offset, m_last_offset;
int m_nrfiles;