On Friday 30 March 2007 18:27, Mathias Weber wrote: > I tried to look how to disable a joystick plugin if it was running but i > couldn't get how i could achieve this. First I would need to check if a > joystick plugin is active if yes i have to stop it and restart it when > the emulator is finished. > What I have seen so far is that I can activate and deactivate a plugin > with plugin.activate and plugin.deactivate. But how do I check if a > plugin is running? Do i just use getbyname? Would you use > plugin.activate/deactivate or add a method to the joystick to let the > plugin release the interface?
AFAICS it might make sense to settle with a suspend/resume API, which can also be useful for other plugins for freeing/reallocating resources (devices etc.). I implemented that some day for hibernate-support; the lirc plugin needs to temporarily close the connection to the daemon, which is stopped because even the kernel modules have to be unloaded for the suspend/resume cycle. It's not hard to implement, but very convenient and sensible. Just my 2 cents. Greetings, Hans
pgp81G6wAkhih.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 Freevo-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freevo-devel