implement length()
[enigma2.git] / lib / base / rawfile.cpp
index e444ba90c7613a36264ea8dbf2445ae23bb222a5..c7e11feb308632d876b706105361ac3d81fd3081 100644 (file)
@@ -1,3 +1,4 @@
+#include <cstdio>
 #include <unistd.h>
 #include <fcntl.h>
 #include <lib/base/rawfile.h>
@@ -226,3 +227,8 @@ int eRawFile::openFileUncached(int nr)
        }
        return ::open(filename.c_str(), O_RDONLY | O_LARGEFILE);
 }
+
+off_t eRawFile::length()
+{
+       return m_totallength;
+}