Re: [cairo] gobject boxed types



Hi,

Johan suggested on IRC that the patch to cairo could be changed to use
dlopen to grab the copy/free functions lazily, to avoid a compile-time
dependency on glib (and also avoid a runtime dependency, if running in
an app that doesn't link to glib). It's still a hack, but a working
and maintainable one, and it doesn't imply a new module to maintain /
link to just for 4 trivial functions, and doesn't mess up the
dependency graph. The dlopen could be of NULL not libgobject.so
(assume the app has already loaded the library), so no tricky issues
about finding the thing to dlopen would arise.

I'd be willing to do something similar for DBUS_TYPE_CONNECTION, etc.
in libdbus, it seems like a decent solution in general.

Havoc


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]