#include #include #include namespace { std::shared_ptr ioCtx; std::shared_ptr sdbusp; } // namespace void setIoContext(std::shared_ptr& newIo) { ioCtx = newIo; } std::shared_ptr getIoContext() { return ioCtx; } void setSdBus(std::shared_ptr& newBus) { sdbusp = newBus; } std::shared_ptr getSdBus() { return sdbusp; }