diff options
author | thlo <t.lohmar@gmx.de> | 2013-02-02 13:36:07 +0100 |
---|---|---|
committer | thlo <t.lohmar@gmx.de> | 2013-02-02 13:36:07 +0100 |
commit | f4c51fd409644bb8bbf1e194e2ab2abd317e608f (patch) | |
tree | b28e0eca6efbaec401267a15976f82d153920562 /vdr-smarttvweb/httpresource.h | |
parent | 3adf73ca0d66f2689118606e562ccf7807f525b4 (diff) | |
download | vdr-plugin-smarttvweb-f4c51fd409644bb8bbf1e194e2ab2abd317e608f.tar.gz vdr-plugin-smarttvweb-f4c51fd409644bb8bbf1e194e2ab2abd317e608f.tar.bz2 |
use stat64 instead of stat. Don't show hideen files.
Diffstat (limited to 'vdr-smarttvweb/httpresource.h')
-rwxr-xr-x | vdr-smarttvweb/httpresource.h | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/vdr-smarttvweb/httpresource.h b/vdr-smarttvweb/httpresource.h index 81ecb34..35b3367 100755 --- a/vdr-smarttvweb/httpresource.h +++ b/vdr-smarttvweb/httpresource.h @@ -141,17 +141,17 @@ class cHttpResource { int readRequestPayload(); void sendError(int status, const char *title, const char *extra, const char *text); - int sendDir(struct stat *statbuf); - int sendVdrDir(struct stat *statbuf); - int sendRecordingsXml (struct stat *statbuf); - int sendChannelsXml (struct stat *statbuf); + int sendDir(struct stat64 *statbuf); + int sendVdrDir(struct stat64 *statbuf); + int sendRecordingsXml (struct stat64 *statbuf); + int sendChannelsXml (struct stat64 *statbuf); int sendResumeXml (); - int sendVdrStatusXml (struct stat *statbuf); - // int sendResumeXml (struct stat *statbuf); - int sendEpgXml (struct stat *statbuf); - int sendMediaXml (struct stat *statbuf); + int sendVdrStatusXml (struct stat64 *statbuf); + // int sendResumeXml (struct stat64 *statbuf); + int sendEpgXml (struct stat64 *statbuf); + int sendMediaXml (struct stat64 *statbuf); - int sendManifest (struct stat *statbuf, bool is_hls = true); + int sendManifest (struct stat64 *statbuf, bool is_hls = true); int receiveResume(); int deleteRecording(); @@ -160,25 +160,25 @@ class cHttpResource { void writeMPD(double duration, float seg_dur, int end_seg); - int sendMediaSegment (struct stat *statbuf); + int sendMediaSegment (struct stat64 *statbuf); void sendHeaders(int status, const char *title, const char *extra, const char *mime, long long int length, time_t date); - int sendFile(struct stat *statbuf); + int sendFile(struct stat64 *statbuf); // Helper Functions const char *getMimeType(const char *name); string getConnStateName(); void checkRecording(); - bool isTimeRequest(struct stat *statbuf); + bool isTimeRequest(struct stat64 *statbuf); int parseRangeHeaderValue(string); int parseHttpRequestLine(string); int parseHttpHeaderLine (string); int parseQueryLine (vector<sQueryAVP> *avps); int parseResume(cResumeEntry &entry, string &id); - int parseFiles(vector<sFileEntry> *entries, string prefix, string dir_base, string dir_name, struct stat *statbuf); + int parseFiles(vector<sFileEntry> *entries, string prefix, string dir_base, string dir_name, struct stat64 *statbuf); int getQueryAttributeValue(vector<sQueryAVP> *avps, string id, string &val); int openFile(const char *name); |