From ca992f4f76d09965e4e62c805daa02b23266a224 Mon Sep 17 00:00:00 2001 From: Felix Morgner Date: Thu, 29 Nov 2018 18:29:34 +0100 Subject: control: begin control interface implementation --- src/main.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/main.cpp') diff --git a/src/main.cpp b/src/main.cpp index 6d1353d..1d6f2bd 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -1,6 +1,7 @@ #include "filesystem.hpp" #include "setting.hpp" #include "optional.hpp" +#include "control_interface.hpp" #include #include @@ -46,5 +47,12 @@ int main() auto wallpaper = wanda::random_pick(list); std::cout << "changing wallpaper to " << wallpaper << '\n'; set_wallpaper(wallpaper); + + auto service = boost::asio::io_service{}; + auto interface = wanda::make_interface(service, ".wanda_interface"); + std::cout << interface.use_count() << '\n'; + auto status = interface->start(); + std::cout << status << ' ' << status.message() << '\n'; + service.run(); }) || [] { std::cerr << "Directory does not exist\n"; }; } -- cgit v1.2.3