[vdr] status class extensions?

Klaus Schmidinger Klaus.Schmidinger at cadsoft.de
Wed Sep 14 18:09:47 CEST 2005


Bernd Juraschek wrote:
> Hello,
> 
> I want to create a plugin which informs other applications about vdr
> status changes. This is no problem for start/stop of recording and
> replaying. But I want also detect other status changes without "polling"
> the vdr structures.
> 
> Now my questions/wishes:
> 
> - It would be nice to extend the cStatus class with some more events
>   (such as adding, removing or changing timers or channels,

This could be detected by watching the timestamps of channels.conf and
timers.conf.

> change of the next active timer,

Just use SVDRP NEXT.

> disk full warnings,

Any application can check the disk usage directly.

> deletion of recordings).

Why would an external application need to know that?

> - Plugins can iterate on timer and channel lists. But I think, this
>   lists are not thread safe for concurrent iterating and modifying
>   by vdr and plugins with own threads.

You're right, they're not thread safe. But since you wrote that you
want to inform "other applications" about these things, and I have
shown you ways how to do that (see above), I don't think these things
are actually necessary in cStatus.

Klaus



More information about the vdr mailing list