diff options
Diffstat (limited to 'ttools.h')
-rw-r--r-- | ttools.h | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/ttools.h b/ttools.h new file mode 100644 index 0000000..07f9382 --- /dev/null +++ b/ttools.h @@ -0,0 +1,42 @@ +/* + * ttools.h: EPG2VDR plugin for the Video Disk Recorder + * + * See the README file for copyright information and how to reach the author. + * + */ + +#ifndef _TTOOLS_H_ +#define _TTOOLS_H_ + +#include <vdr/timers.h> + +#include "service.h" + +//*************************************************************************** +// Timer Tools +//*************************************************************************** + +int contentOfTag(const char* tag, const char* xml, char* buf, int size); +int contentOfTag(const cTimer* timer, const char* tag, char* buf, int size); +int contentOfTag(const cTimer* timer, const char* tag, int& value); +int getTimerIdOf(const cTimer* timer); +int getTimerIdOf(const char* aux); +void removeTag(char* xml, const char* tag); +int insertTag(char* xml, const char* parent, const char* tag, int value); +int insertTag(char* xml, const char* parent, const char* tag, const char* value); +int setTagTo(cTimer* timer, const char* tag, int value); +int setTagTo(cTimer* timer, const char* tag, const char* value); +int setTimerId(cTimer* timer, int tid); +cTimer* getTimerById(cTimers* timers, int timerid); +cTimer* getTimerByEvent(cTimers* timers, const cEvent* event); + +cDbRow* newTimerRowFromEvent(const cEvent* event); +cDbRow* newRowFromTimer(const cTimer* t); +int updateRowByTimer(cDbRow* timerDb, const cTimer* t); + +cEpgTimer* newTimerObjectFromRow(cDbRow* timerRow, cDbRow* vdrRow); +int updateTimerObjectFromRow(cTimer* timer, cDbRow* timerRow, const cEvent* event); + +//*************************************************************************** + +#endif // _TTOOLS_H_ |