Lines Matching full:callback
31 using Callback = fu2::unique_function<void(EventBase& source)>; typedef in sdeventplus::source::EventBase
33 /** @brief Sets the callback
35 * @param[in] callback - The function executed on event dispatch
37 void set_callback(Callback&& callback);
55 * reconfigured upon each callback.
60 * @param[in] callback - The function executed on event dispatch
63 Callback&& callback);
72 /** @brief Returns a reference to the callback executed for this source
74 * @return A reference to the callback
76 Callback& get_callback();
89 /** @brief A wrapper around the callback that can be called from sd-event
104 EventBase::Callback callback; member in sdeventplus::source::detail::EventBaseData
107 EventBaseData(const EventBase& base, EventBase::Callback&& callback);
118 * Executes the callback upon events occurring
121 * @param[in] callback - The function executed on event dispatch
124 Defer(const Event& event, Callback&& Callback);
131 * Executes the callback upon events occurring
134 * @param[in] callback - The function executed on event dispatch
137 Post(const Event& event, Callback&& callback);
144 * Executes the callback upon events occurring
147 * @param[in] callback - The function executed on event dispatch
150 Exit(const Event& event, Callback&& callback);