19 #ifndef MIRAL_TOOLKIT_CONNECTION_H 20 #define MIRAL_TOOLKIT_CONNECTION_H 22 #include <mir_toolkit/mir_connection.h> 38 explicit Connection(MirConnection* connection) : self{connection, deleter} {}
40 operator MirConnection*()
const {
return self.get(); }
45 static void deleter(MirConnection* connection) { mir_connection_release(connection); }
46 std::shared_ptr<MirConnection>
self;
51 #endif //MIRAL_TOOLKIT_CONNECTION_H
Mir Abstraction Layer.
Definition: active_outputs.h:27