diff options
| author | Felix Morgner <felix.morgner@gmail.com> | 2018-11-29 18:29:34 +0100 |
|---|---|---|
| committer | Felix Morgner <felix.morgner@gmail.com> | 2018-11-29 18:29:34 +0100 |
| commit | ca992f4f76d09965e4e62c805daa02b23266a224 (patch) | |
| tree | 07eaeae4e288832306c353dd46cd3c2e52b8b5db /src/main.cpp | |
| parent | d018603b1ff8e93902e8c9c904199f54076154c4 (diff) | |
| download | wanda-ca992f4f76d09965e4e62c805daa02b23266a224.tar.xz wanda-ca992f4f76d09965e4e62c805daa02b23266a224.zip | |
control: begin control interface implementation
Diffstat (limited to 'src/main.cpp')
| -rw-r--r-- | src/main.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
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 <iostream> #include <set> @@ -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"; }; } |
