#include <icy/ipc.h>Default action type for executing synchronized callbacks.
| Return | Name | Description |
|---|---|---|
Callback | target | The callable to invoke when the action is dispatched. |
void * | arg | Optional opaque pointer passed to the callback. |
std::string | data | Optional string payload passed to the callback. |
Callback targetThe callable to invoke when the action is dispatched.
void * argOptional opaque pointer passed to the callback.
std::string dataOptional string payload passed to the callback.
| Return | Name | Description |
|---|---|---|
Action inline | Constructs an Action with the given callback, optional argument, and optional data. |
inline
inline Action(Callback target, void * arg, const std::string & data)Constructs an Action with the given callback, optional argument, and optional data.
target Callback to invoke on dispatch.
arg Opaque pointer passed to the callback (default: nullptr).
data String payload passed to the callback (default: empty).
| Name | Description |
|---|---|
Callback |
std::function< void(const Action &)> Callback()