Files
@ c63c87c023a0
Branch filter:
Location: libtransport.git/backends/libcommuni/main.cpp - annotation
c63c87c023a0
1.5 KiB
text/x-c++hdr
Travis: fix macOS build
do not use bottled libswiften to avoid boost linkage errors
do not use bottled libswiften to avoid boost linkage errors
addac0040c4a addac0040c4a d2502858d6c0 addac0040c4a addac0040c4a addac0040c4a addac0040c4a addac0040c4a addac0040c4a addac0040c4a addac0040c4a addac0040c4a addac0040c4a addac0040c4a addac0040c4a addac0040c4a addac0040c4a addac0040c4a d2502858d6c0 180397daaba0 180397daaba0 78e71f9345c7 78e71f9345c7 78e71f9345c7 d2502858d6c0 bc3971f7d258 5424e5c686e6 d2502858d6c0 d2502858d6c0 d2502858d6c0 5424e5c686e6 d2502858d6c0 d2502858d6c0 d2502858d6c0 d2502858d6c0 d2502858d6c0 060510d6958e 060510d6958e 060510d6958e 060510d6958e d2502858d6c0 d2502858d6c0 d2502858d6c0 060510d6958e 5424e5c686e6 ff6448bcd32f ff6448bcd32f d2502858d6c0 5424e5c686e6 d2502858d6c0 05e06dd845ae d2502858d6c0 d2502858d6c0 | /**
* XMPP - libpurple transport
*
* Copyright (C) 2013, Jan Kaluza <hanzz.k@gmail.com>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA
*/
#include <QtCore>
#include <QtNetwork>
#include "transport/Config.h"
#include "transport/NetworkPlugin.h"
#include "transport/Logging.h"
#include "Swiften/EventLoop/Qt/QtEventLoop.h"
#include "ircnetworkplugin.h"
using namespace boost::program_options;
using namespace Transport;
NetworkPlugin * np = NULL;
int main (int argc, char* argv[]) {
std::string host;
int port;
std::string error;
Config *cfg = Config::createFromArgs(argc, argv, error, host, port);
if (cfg == NULL) {
std::cerr << error;
return 1;
}
Logging::initBackendLogging(cfg);
QCoreApplication app(argc, argv);
Swift::QtEventLoop eventLoop;
np = new IRCNetworkPlugin(cfg, &eventLoop, host, port);
return app.exec();
}
|