Mathias Weber wrote: > Dirk Meyer wrote: >> Mathias Weber wrote: >>> I think suspend would be good for pause the plugin/application but >>> resume is still to generic. And i can't think of something better then >>> resume i looked trough dict.leo but i haven't found something that fits >>> for me. >>> What would you think of detach and reattach? >> >> Since we don't need pause/resume as functions in a plugin, suspend and >> resume would be good. And without the ressource_ prefix, the function >> could also do other stuff that has nothing to do with ressource >> handling. > > this is what i thought too, but what i have seen is that the popcorn > player also has a resume. I hope this may not confuse. But at the end it > matches the name correctly and no application has the method resume so > far i see. So it should work. > If it is ok, i will try to do it this way.
kaa.popcorn is no Application, the video and audio player _have_ a
popcorn instance but do not inherit from it. So application resume is
only needed for ressource handling. So I vote for suspend and resume
without prefix. But we need an extra function can_suspend to check all
blocking ressource if it would be possible to suspend all. So what
about extending get_ressources: it returns {} if everything is ok, a
dict which object hold ressources if suspend is working for all and
False if at least one can't be suspended.
> I just can imagine one problem but this one would be hard to solve. In
> the case of the joystick. If I have more then one joystick it would be
> possible to have different plugins using a joystick and they would not
> get into their way but for gaming still all joysticks would be needed.
> But as I said this is a special case and we would find some others like
> this and they make it just much more complicated and in most cases the
> way we have it now would be sufficient.
Agreed, let us not make it more complicated. And there is no harm in
releasing the Freevo joystick first before using a second one in the
game.
Dischi
--
People say I'm a bad influence. I say the world is already pretty
messed up - I'm just adding to it.
pgpuUcQjO9ToJ.pgp
Description: PGP signature
------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________ Freevo-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/freevo-devel
