author | nathan |
Sat, 29 Dec 2007 14:49:09 +0100 | |
branch | trunk |
changeset 2 | 4c1f7b705009 |
parent 0 | 474a1293c3c0 |
child 22 | 93aaf15c145a |
permissions | -rw-r--r-- |
nathan@0 | 1 |
/* |
nathan@0 | 2 |
* MP3/MPlayer plugin to VDR (C++) |
nathan@0 | 3 |
* |
nathan@2 | 4 |
* (C) 2001-2007 Stefan Huelswitt <s.huelswitt@gmx.de> |
nathan@0 | 5 |
* |
nathan@0 | 6 |
* This code is free software; you can redistribute it and/or |
nathan@0 | 7 |
* modify it under the terms of the GNU General Public License |
nathan@0 | 8 |
* as published by the Free Software Foundation; either version 2 |
nathan@0 | 9 |
* of the License, or (at your option) any later version. |
nathan@0 | 10 |
* |
nathan@0 | 11 |
* This code is distributed in the hope that it will be useful, |
nathan@0 | 12 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
nathan@0 | 13 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
nathan@0 | 14 |
* GNU General Public License for more details. |
nathan@0 | 15 |
* |
nathan@0 | 16 |
* You should have received a copy of the GNU General Public License |
nathan@0 | 17 |
* along with this program; if not, write to the Free Software |
nathan@0 | 18 |
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
nathan@0 | 19 |
* Or, point your browser to http://www.gnu.org/copyleft/gpl.html |
nathan@0 | 20 |
*/ |
nathan@0 | 21 |
|
nathan@0 | 22 |
#ifndef ___COMMON_H |
nathan@0 | 23 |
#define ___COMMON_H |
nathan@0 | 24 |
|
nathan@2 | 25 |
#ifndef PLUGIN_NAME_I18N |
nathan@2 | 26 |
#define PLUGIN_NAME_I18N "dummy" |
nathan@2 | 27 |
#endif |
nathan@2 | 28 |
|
nathan@0 | 29 |
#ifndef APIVERSNUM |
nathan@0 | 30 |
#include <vdr/config.h> |
nathan@0 | 31 |
#endif |
nathan@0 | 32 |
#include "config.h" |
nathan@0 | 33 |
|
nathan@0 | 34 |
#if APIVERSNUM >= 10313 |
nathan@0 | 35 |
#define SLEEP(x) cCondWait::SleepMs(x) |
nathan@0 | 36 |
#else |
nathan@0 | 37 |
#define SLEEP(x) usleep((x)*1000) |
nathan@0 | 38 |
#endif |
nathan@0 | 39 |
|
nathan@0 | 40 |
#if APIVERSNUM >= 10318 |
nathan@0 | 41 |
#include <vdr/tools.h> |
nathan@0 | 42 |
static cTimeMs __time; |
nathan@0 | 43 |
#define time_ms() ((int)__time.Elapsed()) |
nathan@0 | 44 |
#endif |
nathan@0 | 45 |
|
nathan@0 | 46 |
#if APIVERSNUM >= 10338 |
nathan@0 | 47 |
#define BUTTON "Button$" |
nathan@0 | 48 |
#else |
nathan@0 | 49 |
#define BUTTON |
nathan@0 | 50 |
#endif |
nathan@0 | 51 |
|
nathan@0 | 52 |
#if !defined(NO_DEBUG) && defined(DEBUG) |
nathan@0 | 53 |
#define d(x) { (x); } |
nathan@0 | 54 |
#else |
nathan@0 | 55 |
#define d(x) ; |
nathan@0 | 56 |
#endif |
nathan@0 | 57 |
|
nathan@0 | 58 |
#endif //___COMMON_H |