Subject: | allow to pass user-data to callbacks and timers |
A possibility to add a user-definable user-data reference that will be passed to the callback or timer functions beside the ui object would be nice.
This could be look like that:
$ui->add_timer( 'update', \&update, 5, $foo );
where foo is the user-data that'll be passed to update() every time it's called.
Regards,
Florian