BootProgressFunction parameters
Charlie Brej
plymouth at brej.org
Fri Jun 4 12:38:41 PDT 2010
On 06/04/2010 05:22 PM, David D Lowe wrote:
> Hello all.
>
> on this wiki page:
> http://www.freedesktop.org/wiki/Software/Plymouth/Scripts
> the arguments for a BootProgressFunction should be progress, time.
>
> However, when I experimented with Plymouth scripts, I found that in fact
> it is the opposite way round. It's time, progress.
>
> For example:
> # this code works
> fun progress_callback(time, progress)
> {
> progress_status = "We have waited " + time + " seconds and we are " +
> (progress * 100) + " % done";
> // ...
> }
> Plymouth.SetBootProgressFunction(progress_callback);
>
> Am I right?
> Yours,
> David D Lowe
Yes you are. The wiki is incorrect, but the example plugin is right.
Corrected the wiki.
More information about the plymouth
mailing list