From 3620e2eebc6df1c86a6a5bb291f11ddf2b1caac8 Mon Sep 17 00:00:00 2001 From: Thomas Reufer Date: Sun, 23 Aug 2015 19:00:15 +0200 Subject: initial prototype - tested: - live TV - frame buffer OSD - missing: - A/V sync - replay mode - much more... --- tools.h | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 tools.h (limited to 'tools.h') diff --git a/tools.h b/tools.h new file mode 100644 index 0000000..8108b4a --- /dev/null +++ b/tools.h @@ -0,0 +1,35 @@ +/* + * See the README file for copyright information and how to reach the author. + * + * $Id$ + */ + +#ifndef TOOLS_H +#define TOOLS_H + +#include + +#define ELOG(a...) esyslog("amlhddevice: " a) +#define ILOG(a...) isyslog("amlhddevice: " a) +#define DLOG(a...) dsyslog("amlhddevice: " a) + +#ifdef DEBUG +#define DBG(a...) dsyslog("amlhddevice: " a) +#else +#define DBG(a...) void() +#endif + +class cSysFs +{ + +public: + + static bool Write(const char *path, const char *value); + static bool Write(const char *path, int value); + +private: + + cSysFs(); +}; + +#endif -- cgit v1.2.3