From dfeb19b0a83b8ce57d28bf94a4f8d129993d1064 Mon Sep 17 00:00:00 2001 From: Joel Klinghed Date: Mon, 12 Jan 2026 23:06:20 +0100 Subject: Initial commit --- src/xcb_resource.cc | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 src/xcb_resource.cc (limited to 'src/xcb_resource.cc') diff --git a/src/xcb_resource.cc b/src/xcb_resource.cc new file mode 100644 index 0000000..8005c6f --- /dev/null +++ b/src/xcb_resource.cc @@ -0,0 +1,41 @@ +#include "xcb_resource.hh" + +#include "xcb_connection.hh" + +#include +#include +#include + +namespace xcb { + +unique_wnd make_unique_wnd(shared_conn conn) { + return std::make_unique>( + std::move(conn)); +} + +shared_wnd make_shared_wnd(shared_conn conn) { + return std::make_shared>( + std::move(conn)); +} + +unique_gc make_unique_gc(shared_conn conn) { + return std::make_unique>( + std::move(conn)); +} + +shared_gc make_shared_gc(shared_conn conn) { + return std::make_shared>( + std::move(conn)); +} + +unique_font make_unique_font(shared_conn conn) { + return std::make_unique>( + std::move(conn)); +} + +shared_font make_shared_font(shared_conn conn) { + return std::make_shared>( + std::move(conn)); +} + +} // namespace xcb -- cgit v1.2.3-70-g09d2