Added version string to plugin and added to plugin loaded message
This commit is contained in:
parent
2db2ffac84
commit
bfd0a45d59
|
@ -69,7 +69,12 @@ ArchPluginWindows::load()
|
||||||
String filename = synergy::string::removeFileExt(*it);
|
String filename = synergy::string::removeFileExt(*it);
|
||||||
m_pluginTable.insert(std::make_pair(filename, lib));
|
m_pluginTable.insert(std::make_pair(filename, lib));
|
||||||
|
|
||||||
LOG((CLOG_DEBUG "loaded plugin: %s", (*it).c_str()));
|
char * version = (char*)invoke( filename.c_str(),"version",NULL);
|
||||||
|
if (version == NULL) {
|
||||||
|
version = "Pre-1.7.4";
|
||||||
|
}
|
||||||
|
|
||||||
|
LOG((CLOG_DEBUG "loaded plugin: %s (%s)", (*it).c_str(),version));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -24,6 +24,7 @@
|
||||||
|
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
|
|
||||||
|
const char * kSynergyVers = VERSION;
|
||||||
SecureSocket* g_secureSocket = NULL;
|
SecureSocket* g_secureSocket = NULL;
|
||||||
SecureListenSocket* g_secureListenSocket = NULL;
|
SecureListenSocket* g_secureListenSocket = NULL;
|
||||||
Arch* g_arch = NULL;
|
Arch* g_arch = NULL;
|
||||||
|
@ -86,6 +87,9 @@ invoke(const char* command, void** args)
|
||||||
g_secureListenSocket = NULL;
|
g_secureListenSocket = NULL;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
else if(strcmp(command, "version") == 0) {
|
||||||
|
return (void*) kSynergyVers;
|
||||||
|
}
|
||||||
|
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue