diff options
| author | ghost <andreas.monzner@multimedia-labs.de> | 2010-11-24 16:06:57 +0100 |
|---|---|---|
| committer | ghost <andreas.monzner@multimedia-labs.de> | 2010-11-24 16:10:56 +0100 |
| commit | 453fc1c6f82fa3b6ae983059eb55ad822860a5eb (patch) | |
| tree | fd8eb3b76c68676195be061977344c9a0011ab55 /lib/base/itssource.h | |
| parent | 7199d3c37e7e7065bd6943702b5864fa5186b9a8 (diff) | |
| download | enigma2-453fc1c6f82fa3b6ae983059eb55ad822860a5eb.tar.gz enigma2-453fc1c6f82fa3b6ae983059eb55ad822860a5eb.zip | |
rename iDataSource to iTsSource (no functional change)
Diffstat (limited to 'lib/base/itssource.h')
| -rw-r--r-- | lib/base/itssource.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/lib/base/itssource.h b/lib/base/itssource.h new file mode 100644 index 00000000..91167ff5 --- /dev/null +++ b/lib/base/itssource.h @@ -0,0 +1,19 @@ +#ifndef __lib_base_idatasource_h +#define __lib_base_idatasource_h + +#include <lib/base/object.h> + +class iTsSource: public iObject +{ +public: + /* NOTE: should only be used to get current position or filelength */ + virtual off_t lseek(off_t offset, int whence)=0; + + /* NOTE: you must be able to handle short reads! */ + virtual ssize_t read(off_t offset, void *buf, size_t count)=0; /* NOTE: this is what you in normal case have to use!! */ + + virtual off_t length()=0; + virtual int valid()=0; +}; + +#endif |
