diff options
author | anbr <vdr07@deltab.de> | 2010-12-21 21:15:43 +0100 |
---|---|---|
committer | anbr <vdr07@deltab.de> | 2010-12-21 21:15:43 +0100 |
commit | dc368dc785849f14cbfec927dcdea886d075bbb1 (patch) | |
tree | e03e742b69a8bec5d3026e4f5cd4df4c570a5e7a /helpers.h | |
parent | 00b415857ebabfc81fca30caa049a35d9b19e10b (diff) | |
download | vdr-plugin-dvdswitch-dc368dc785849f14cbfec927dcdea886d075bbb1.tar.gz vdr-plugin-dvdswitch-dc368dc785849f14cbfec927dcdea886d075bbb1.tar.bz2 |
Use Make.global - Make sure that necessary options are included
Translate debug messages, remove some messages
Fix some gcc warning around asprintf, realpath
Diffstat (limited to 'helpers.h')
-rw-r--r-- | helpers.h | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -16,6 +16,8 @@ #define FREENULL(p) (free(p), p = NULL) void OsdMsg(eMessageType Type, const char *Msg); +void OSDErrorNumMsg(int err, const char* szDef); +void SysLogErrorNumMsg(int err, const char* szDef); void ChangeChars(char *name, char *chars); void StrRepeat(const char *input, int count, char *dest); bool RegIMatch(const char *string,const char *pattern); @@ -157,7 +159,7 @@ class cFileCMD public: static bool Del(const char *file); static bool Mkdir(const char *dir) { return MakeDirs(dir, true); } - static bool Rn(const char *oldfile, const char *newfile) { return !rename(oldfile, newfile); } + static bool Rn(const char *oldfile, const char *newfile) { return 0 == rename(oldfile, newfile); } static bool DirIsEmpty(const char *file); }; |