Add dbus server

This commit is contained in:
Guillaume Meunier
2024-09-27 19:25:57 +02:00
parent b93a937ae1
commit d0850e819c
17 changed files with 338 additions and 94 deletions
+7
View File
@@ -23,6 +23,8 @@
#include <sys/mman.h>
#include <sys/wait.h>
std::unique_ptr<xrt::drivers::wivrn::TCP> tcp;
struct cleanup_function
{
void (*callback)(uintptr_t);
@@ -31,6 +33,11 @@ struct cleanup_function
std::array<cleanup_function, 1024> * cleanup_functions; // In shared memory
std::optional<to_monado::packets> receive_from_main()
{
return wivrn_ipc_socket_monado->receive();
}
void init_cleanup_functions()
{
if (cleanup_functions)