Hi

Has anyone yet solved the problem of how to access macro-based C library logging systems from Vala? This is important when writing plugins for libraries like Grilo, GStreamer and even GLib-based libraries.

The problem is that defining log domains/categories is generally done with C macros. Is the only solution to actually build some level of log support into Vala itself, so that the .vapi file could define how to set a log domain and the namespace could have a [LogDomain "Foo"] attribute or some such?

I notice in gstreamer-0.10.vapi there is a DebugCategory class wrapping the macros to generate a log category and output messages in that category. There doesn't seem to be any way to use it, however, because there's no way to construct a DebugCategory instance.

Thanks
Sam
_______________________________________________
vala-list mailing list
[email protected]
http://mail.gnome.org/mailman/listinfo/vala-list

Reply via email to