diff options
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"; }; } |
