From: Duilio J. P. <dp...@fc...> - 2004-10-01 23:39:09
|
> On Fri, 2004-10-01 at 19:44 +0100, salsaman wrote: > > This output needs to be removed or sent instead to stderr. > > > > Regards, > > Salsaman. > > All has been removed from CVS, and libvisual-INFO output will be > controlable through API. > > Dennis I think the best way to do that is to add an API function which let the user to set a handler for outputting messages, which overrides the default behavior, like glib does. In glib you have i.e g_message() with a default behavior, but you can override it calling g_set_message_handler() with a function that receives the message string and returns nothing. This approach is very powerfull because you can process and redirect output whatever you like. Specially on GUI applications, you can redirect messages to some GUI widget. Bye, Duilio. |