diff options
author | horchi <vdr@jwendel.de> | 2017-03-05 14:51:57 +0100 |
---|---|---|
committer | horchi <vdr@jwendel.de> | 2017-03-05 14:51:57 +0100 |
commit | 5eacf5bf36ddbac082a9e40a2bcdfd0f04fd3f9f (patch) | |
tree | 392875cb707b94aaba9d8941113eae35efaf2ec2 /ttools.h | |
download | vdr-plugin-epg2vdr-5eacf5bf36ddbac082a9e40a2bcdfd0f04fd3f9f.tar.gz vdr-plugin-epg2vdr-5eacf5bf36ddbac082a9e40a2bcdfd0f04fd3f9f.tar.bz2 |
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_ |