From 3971cc6e8845f2a70018b20706f4a30d71edd41d Mon Sep 17 00:00:00 2001 From: Klaus Schmidinger Date: Wed, 11 Sep 2013 12:20:37 +0200 Subject: Removed the code for distributing recordings over several video directories; added the cVideoDirectory plugin API --- PLUGINS.html | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) (limited to 'PLUGINS.html') diff --git a/PLUGINS.html b/PLUGINS.html index 5260c4bf..71d840ea 100644 --- a/PLUGINS.html +++ b/PLUGINS.html @@ -104,6 +104,7 @@ structures and allows it to hook itself into specific areas to perform special a
  • Remote Control
  • Conditional Access
  • Electronic Program Guide +
  • The video directory @@ -2300,5 +2301,41 @@ to signal VDR that no other EPG handlers shall be queried after this one.

    See VDR/epg.h for details. +

    +

    The video directory

    + +
    Bits and pieces...

    + +By default VDR assumes that the video directory consists of one large +volume, on which it can store its recordings. If you want to distribute your +recordings over several physical drives, you can derive from cVideoDirectory, +as in + +

    +#include <vdr/videodir.h>
    +
    +class cMyVideoDirectory : public cVideoDirectory {
    +public:
    +  cMyVideoDirectory(void);
    +  virtual ~cMyVideoDirectory();
    +  virtual int FreeMB(int *UsedMB = NULL);
    +  virtual bool Register(const char *FileName);
    +  virtual bool Rename(const char *OldName, const char *NewName);
    +  virtual bool Move(const char *FromName, const char *ToName);
    +  virtual bool Remove(const char *Name);
    +  virtual void Cleanup(const char *IgnoreFiles[] = NULL);
    +  virtual bool Contains(const char *Name);
    +  };
    +

    + +See the description in videodir.h for details. +

    +You should create your derived video directory object in the +Start() function of your plugin. +Note that the object has to be created on the heap (using new), +and you shall not delete it at any point (it will be deleted automatically +when the program ends). +

    + -- cgit v1.2.3