From 06950aab233de6a2f47293d59575bb42f6131660 Mon Sep 17 00:00:00 2001 From: Joel Klinghed Date: Wed, 27 Jan 2021 22:06:49 +0100 Subject: Complete rewrite using C++ and with shared state support --- src/xcb_resources_none.cc | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 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..be37dd9 --- /dev/null +++ b/src/xcb_resources_none.cc @@ -0,0 +1,35 @@ +#include "common.hh" + +#include "xcb_resources.hh" + +namespace xcb { + +namespace { + +class ResourcesNone : public Resources { +public: + ResourcesNone() = default; + + std::optional get_string(std::string const&, + std::string const&) override { + return std::optional(); + } + + std::optional get_long(std::string const&, + std::string const&) override { + return std::optional(); + } + + std::optional get_bool(std::string const&, + std::string const&) override { + return std::optional(); + } +}; + +} // namespace + +std::unique_ptr Resources::create(shared_conn) { + return std::make_unique(); +} + +} // namespace xcb -- cgit v1.2.3-70-g09d2