https://bugs.freedesktop.org/show_bug.cgi?id=73339

--- Comment #2 from [email protected] ---
Well, you're almost there.

Remember how xlib had only a process wide error handler, and everyone hated it?
You're making the same mistake.

This is a very common mistake library designers do, and many libraries suffer
from this mistake - or rather, libraries using other libraries suffer from it,
because now they have to fight with other libraries for the log callback. That
everyone makes this error doesn't make it any less wrong.

I suggest that wl_log gets a context argument, and that the wl_log_handler can
be set per-context by the library user.

(Maybe this is less severe than the xlib issue, because wl_log_handler really
is only a log function and not more, but still.)

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Wayland-bugs mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/wayland-bugs

Reply via email to