[Development] QtNetwork QtCS Session
Thiago Macieira
thiago.macieira at intel.com
Fri Jun 20 17:29:03 CEST 2014
Em sex 20 jun 2014, às 06:59:35, Rutledge Shawn escreveu:
> > I don't see how they'd do that. In order to dlopen anything, we need a C
> > API.
> Supposedly it can be done even with C++, with some caveats:
>
> http://stackoverflow.com/questions/1067346/alternatives-to-dlsym-and-dlopen-> in-c http://tldp.org/HOWTO/C++-dlopen
> http://www.linuxjournal.com/article/3687
>
> I tried the code from the last one. Seems the main idea is that if you got
> a C++ object from the dlopen’d library, you are free to call methods on it
> (as long as the methods were declared in base classes to which the compiler
> had access already, and I suppose that could cause some code duplication),
> but you need an extern “C" function to get the object. Maybe the plugins'
> usage of D-Bus could be made to fit that pattern then?
You're describing our plugin system.
That would mean the plugin has a plugin. It's possible to do that, but it will
greatly increase the complexity of writing the plugin in the first place.
Instead of driving D-Bus out of the xcb and wayland plugins, we'd instead load
a secondary plugin that did some tasks. We can't decide "now send this
message", but instead we'd write "update systray".
--
Thiago Macieira - thiago.macieira (AT) intel.com
Software Architect - Intel Open Source Technology Center
More information about the Development
mailing list