|
From: Philippe M. <pm...@ac...> - 2010-03-17 14:40:28
|
Hi, In my application, which makes use of liblo, I'd very much like to see error handling callbacks (i.e., lo_err_handler type functions) be provided a "user data" information when called, much like method handlers (i.e., lo_method_handler) callbacks are passed in a void *user_data argument. Such "user data" would be provided by application code to liblo along references to the error handler functions (e.g., a new lo_server creation function similar lo_server_new would be added to liblo and take an addtional void * argument representing the user data). Or maybe there already is a nice way to achieve something similar (i.e., being able to create error handler functions that interact with other elements of my application without using thread-safe adverse things like global variables) ? Thanks. Philippe Mougin |