MCPcopy Create free account
hub / github.com/OpenVPN/openvpn3-linux / Callbacks

Class Callbacks

src/common/requiresqueue.hpp:104–117  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

102
103
104 class Callbacks
105 {
106 public:
107 using CBFunction = std::function<void()>;
108
109 Callbacks();
110 ~Callbacks() noexcept = default;
111
112 void AddCallback(const CallbackType type, CBFunction func);
113 void RunCallback(const CallbackType type) const;
114
115 private:
116 std::map<CallbackType, CBFunction> collection = {};
117 };
118
119
120 [[nodiscard]] static RequiresQueue::Ptr Create()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected