mirror of
https://github.com/debauchee/barrier.git
synced 2026-11-25 21:33:20 +08:00
Added ability to query lib locations to windows builds
This commit is contained in:
@@ -23,6 +23,9 @@
|
||||
#include "base/Log.h"
|
||||
|
||||
#include <iostream>
|
||||
#include <sstream>
|
||||
#include <vector>
|
||||
#include <iterator>
|
||||
|
||||
const char * kSynergyVers = VERSION;
|
||||
SecureSocket* g_secureSocket = NULL;
|
||||
@@ -30,8 +33,21 @@ SecureListenSocket* g_secureListenSocket = NULL;
|
||||
Arch* g_arch = NULL;
|
||||
Log* g_log = NULL;
|
||||
|
||||
extern "C" {
|
||||
std::string
|
||||
helperGetLibsUsed(void)
|
||||
{
|
||||
std::stringstream libs(ARCH->getLibsUsed());
|
||||
std::string msg;
|
||||
std::string pid;
|
||||
std::getline(libs,pid);
|
||||
|
||||
while( std::getline(libs,msg) ) {
|
||||
LOG(( CLOG_DEBUG "libs:%s",msg.c_str()));
|
||||
}
|
||||
return pid;
|
||||
}
|
||||
|
||||
extern "C" {
|
||||
void
|
||||
init(void* log, void* arch)
|
||||
{
|
||||
@@ -42,6 +58,8 @@ init(void* log, void* arch)
|
||||
if (g_arch == NULL) {
|
||||
Arch::setInstance(reinterpret_cast<Arch*>(arch));
|
||||
}
|
||||
|
||||
LOG(( CLOG_DEBUG "%s",helperGetLibsUsed().c_str()));
|
||||
}
|
||||
|
||||
int
|
||||
|
||||
Reference in New Issue
Block a user