blob: 9835b38399081642764cd2df672162b47834d1b8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
#include "commander.hpp"
#include "environment.hpp"
#include "xdg.hpp"
#include <boost/asio.hpp>
#include <filesystem>
#include <iostream>
#include <memory>
int main()
{
auto environment = wanda::environment{};
auto interface = wanda::xdg_path_for(wanda::xdg_directory::runtime_dir, environment) / ".wanda_interface";
auto service = boost::asio::io_service{};
std::clog << "[wandac::main] Initializing commander for socket '" << interface.native() << "'\n";
auto commander = wanda::commander{service, interface};
commander.start();
service.run();
}
|