diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2001-09-14 14:06:43 +0200 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2001-09-14 14:06:43 +0200 |
commit | 55135294197254a1b95e9552f3d465ef18fc7de4 (patch) | |
tree | f5169b4780c966a0194f623db08c3a08e0900f89 /tools.h | |
parent | b47ce65b0354c0626b4a9650d96f83122f798b55 (diff) | |
download | vdr-55135294197254a1b95e9552f3d465ef18fc7de4.tar.gz vdr-55135294197254a1b95e9552f3d465ef18fc7de4.tar.bz2 |
Implemented replay mode display
Diffstat (limited to 'tools.h')
-rw-r--r-- | tools.h | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -4,7 +4,7 @@ * See the main source file 'vdr.c' for copyright information and * how to reach the author. * - * $Id: tools.h 1.31 2001/08/26 12:52:49 kls Exp $ + * $Id: tools.h 1.32 2001/09/14 13:40:35 kls Exp $ */ #ifndef __TOOLS_H @@ -31,7 +31,9 @@ extern int SysLogLevel; #define DELETENULL(p) (delete (p), p = NULL) -template<class T> inline void swap(T &a, T &b) { T t = a; a = b; b = t; }; +template<class T> inline T min(T a, T b) { return a <= b ? a : b; } +template<class T> inline T max(T a, T b) { return a >= b ? a : b; } +template<class T> inline void swap(T &a, T &b) { T t = a; a = b; b = t; } ssize_t safe_read(int filedes, void *buffer, size_t size); ssize_t safe_write(int filedes, const void *buffer, size_t size); |