summaryrefslogtreecommitdiff
path: root/vdrtools.h
blob: 95a27b17d4e2eec21c56c82016a83ba1fda2808b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
/*
 * undelete: A plugin for the Video Disk Recorder
 *
 * See the README file for copyright information and how to reach the author.
 *
 * $Id: vdrtools.h 0.4 2005/11/16 18:39:18 hflor Exp $
 */

#ifndef __VDRTOOLS_H
#define __VDRTOOLS_H

#include <vdr/keys.h>
#include <vdr/osd.h>
#include <vdr/osdbase.h>

#if VDRVERSNUM < 10318
class cReadLine {
private:
  size_t size;
  char *buffer;
public:
  cReadLine(void);
  ~cReadLine();
  char *Read(FILE *f);
  };
#endif

#ifdef HAVE_SVDRP
bool GetVDRSize(const char *dir, long long &llSize);
#endif
char *SkipQuote(char *s);
char *ExchangeChars(char *s, bool ToFileSystem);

#ifdef UND_Debug1
  #define UND_Debug
#endif
#ifdef UND_Debug2
  #define UND_Debug
#endif
#ifdef UND_Debug3
  #define UND_Debug
#endif

#ifdef UND_Debug
const char *KeyName(eKeys Key);
const char *OSStateName(eOSState OSState);
#endif

#endif //__VDRTOOLS_H