summaryrefslogtreecommitdiff
path: root/helpers.h
diff options
context:
space:
mode:
authoranbr <vdr07@deltab.de>2010-12-21 21:15:43 +0100
committeranbr <vdr07@deltab.de>2010-12-21 21:15:43 +0100
commitdc368dc785849f14cbfec927dcdea886d075bbb1 (patch)
treee03e742b69a8bec5d3026e4f5cd4df4c570a5e7a /helpers.h
parent00b415857ebabfc81fca30caa049a35d9b19e10b (diff)
downloadvdr-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.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/helpers.h b/helpers.h
index 9935593..951f38a 100644
--- a/helpers.h
+++ b/helpers.h
@@ -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);
};