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_resources_none.cc | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 src/xcb_resources_none.cc (limited to 'src/xcb_resources_none.cc') diff --git a/src/xcb_resources_none.cc b/src/xcb_resources_none.cc new file mode 100644 index 0000000..d9fa783 --- /dev/null +++ b/src/xcb_resources_none.cc @@ -0,0 +1,37 @@ +#include "xcb_resources.hh" + +#include +#include +#include + +namespace xcb { + +namespace { + +class ResourcesNone : public Resources { + public: + ResourcesNone() = default; + + std::optional get_string(std::string const&, + std::string const&) override { + return std::nullopt; + } + + std::optional get_long(std::string const&, + std::string const&) override { + return std::nullopt; + } + + std::optional get_bool(std::string const&, + std::string const&) override { + return std::nullopt; + } +}; + +} // namespace + +std::unique_ptr Resources::create(shared_conn) { + return std::make_unique(); +} + +} // namespace xcb -- cgit v1.2.3-70-g09d2