|
Rockbox mail archiveSubject: Re: plugins calling pluginsRe: plugins calling plugins
From: BlueChip <cs_bluechip_at_webtribe.net>
Date: Tue, 29 Jul 2003 07:55:10 +0100 > > Can we do a page swap? Image the memory space to a file on the hard > drive, open > > the new plugin, then when done, read the image back into memory? > >interesting idea, you might be on to something there. this could also be >used for pausing a game, >changing the song, and coming back. the problem would be, how do you tell >the second plugin to >load the first one when it's done? how about a proposal... new features: #1# plugin can call menu system #2# plugin can call browser #3# plugin can call plugin I suggest that for 1 and 2 we adopt keys which all plugin authors will use: Example: #1# ON + F1 #2# ON + F2 (can we do "ON + Fkey" ?) To affect these: #1# use same system as wps uses #2# use same system as wps uses ?? #3# use rb->call_plugin("plugin", parameter) for 3, use a chunk of code something like... rb->call_plugin(name, param) { #define maxdepth 5 static depth = 0; depth++; if (depth>maxdepth) return; swap current plugin to disk; load new plugin ("/.rockbox/rocks/%s.rock",name) call plugin(param); swap old plugin back to memory; erase temp file; return; } owzat? Received on 2003-07-29 Page template was last modified "Tue Sep 7 00:00:02 2021" The Rockbox Crew -- Privacy Policy |