The gisfrontend plugin is mostly platform independent. The only windows specific part I found so far was
void add(const char* libraryPath, const char* apiSymbolName) { HMODULE libraryAddress = LoadLibrary(libraryPath); assert(libraryAddress != NULL); AbstractGisPlugin* (*fp)(); fp = (AbstractGisPlugin* (*)())GetProcAddress((HMODULE)libraryAddress, apiSymbolN\ ame); assert(fp != NULL); AbstractGisPlugin* plugin = fp(); plugins.push_back(plugin); }
This loads the dynamic library. This is done with the dlopen calls.
References
http://www.ibm.com/developerworks/aix/library/au-porting/
http://www.faqs.org/docs/Linux-HOWTO/Program-Library-HOWTO.html
1 Comment
Unknown User (don)
It was moved into Swig wrapper file here: NativeGisGuiPluginApi.Net/src/NativeGisGuiPluginApi.i.
It should be trivial to port it to Linux by putting some #ifdef there.
Nice links.