status class extensions?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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


[Index of Archives]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Util Linux NG]     [Xfree86]     [Big List of Linux Books]     [Fedora Users]     [Fedora Women]     [ALSA Devel]     [Linux USB]

  Powered by Linux