mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-19 14:30:43 -04:00
Added Windows support to retroshare-android-service
This commit is contained in:
parent
ca0521cb2d
commit
b0d2249ebc
2 changed files with 39 additions and 2 deletions
|
@ -39,11 +39,19 @@ int main(int argc, char *argv[])
|
|||
#endif
|
||||
|
||||
QCoreApplication a(argc, argv);
|
||||
|
||||
RsInit::InitRsConfig();
|
||||
|
||||
ApiServer api;
|
||||
RsControlModule ctrl_mod(argc, argv, api.getStateTokenServer(), &api, true);
|
||||
api.addResourceHandler("control", dynamic_cast<resource_api::ResourceRouter*>(&ctrl_mod), &resource_api::RsControlModule::handleRequest);
|
||||
|
||||
QString sockPath = QString::fromStdString(RsAccounts::ConfigDirectory());
|
||||
#ifdef QT_DEBUG
|
||||
QString sockPath = "RS/";
|
||||
#else
|
||||
QString sockPath = QCoreApplication::applicationDirPath();
|
||||
#endif
|
||||
|
||||
sockPath.append("/libresapi.sock");
|
||||
qDebug() << "Listening on:" << sockPath;
|
||||
ApiServerLocal apiServerLocal(&api, sockPath); (void) apiServerLocal;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue