Drop xrt::drivers namespace

This commit is contained in:
Patrick Nicolas
2024-10-03 23:39:32 +02:00
parent 6946d5144a
commit fdb79b1939
78 changed files with 260 additions and 260 deletions
+3 -3
View File
@@ -30,11 +30,11 @@ static void handle_event_from_main_loop(to_monado::disconnect)
// Ignore disconnect request when no headset is connected
}
std::unique_ptr<xrt::drivers::wivrn::TCP> accept_connection(int watch_fd, std::function<bool()> quit)
std::unique_ptr<wivrn::TCP> accept_connection(int watch_fd, std::function<bool()> quit)
{
wivrn_ipc_socket_monado->send(from_monado::headsdet_disconnected{});
xrt::drivers::wivrn::TCPListener listener(xrt::drivers::wivrn::default_port);
wivrn::TCPListener listener(wivrn::default_port);
pollfd fds[3]{
{.fd = watch_fd, .events = POLLIN},
@@ -56,7 +56,7 @@ std::unique_ptr<xrt::drivers::wivrn::TCP> accept_connection(int watch_fd, std::f
if (fds[1].revents & POLLIN)
{
wivrn_ipc_socket_monado->send(from_monado::headsdet_connected{});
return std::make_unique<xrt::drivers::wivrn::TCP>(listener.accept().first);
return std::make_unique<wivrn::TCP>(listener.accept().first);
}
if (fds[2].revents & POLLIN)